diff --git a/.idea/.name b/.idea/.name deleted file mode 100644 index 13cd1fa..0000000 --- a/.idea/.name +++ /dev/null @@ -1 +0,0 @@ -server \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 0fe92be..92fd58d 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -2,6 +2,8 @@ + + diff --git a/.idea/modules.xml b/.idea/modules.xml index 21db7a2..a1c9b55 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -2,9 +2,9 @@ - - - + + + \ No newline at end of file diff --git a/.idea/modules/at.yeoman.photobackup.server.iml b/.idea/modules/at.yeoman.photobackup.photobackup-server.iml similarity index 57% rename from .idea/modules/at.yeoman.photobackup.server.iml rename to .idea/modules/at.yeoman.photobackup.photobackup-server.iml index 7ee2cd4..d1b852a 100644 --- a/.idea/modules/at.yeoman.photobackup.server.iml +++ b/.idea/modules/at.yeoman.photobackup.photobackup-server.iml @@ -1,13 +1,11 @@ - - + - diff --git a/.idea/modules/at.yeoman.photobackup.server.main.iml b/.idea/modules/at.yeoman.photobackup.photobackup-server.main.iml similarity index 89% rename from .idea/modules/at.yeoman.photobackup.server.main.iml rename to .idea/modules/at.yeoman.photobackup.photobackup-server.main.iml index a0bd234..c77c9a2 100644 --- a/.idea/modules/at.yeoman.photobackup.server.main.iml +++ b/.idea/modules/at.yeoman.photobackup.photobackup-server.main.iml @@ -1,5 +1,5 @@ - + @@ -19,11 +19,15 @@ + + + + @@ -46,13 +50,13 @@ - - + + diff --git a/.idea/modules/at.yeoman.photobackup.server.test.iml b/.idea/modules/at.yeoman.photobackup.photobackup-server.test.iml similarity index 90% rename from .idea/modules/at.yeoman.photobackup.server.test.iml rename to .idea/modules/at.yeoman.photobackup.photobackup-server.test.iml index 17f8bb4..e432f2c 100644 --- a/.idea/modules/at.yeoman.photobackup.server.test.iml +++ b/.idea/modules/at.yeoman.photobackup.photobackup-server.test.iml @@ -1,5 +1,5 @@ - + @@ -19,7 +19,8 @@ - + + @@ -27,6 +28,9 @@ + + + @@ -95,5 +99,5 @@ - + \ No newline at end of file diff --git a/build.gradle b/build.gradle index 2638b17..b9f9533 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,18 @@ -plugins { - id 'java' +buildscript { + repositories { + mavenCentral() + } + ext { + springBootVersion = '2.0.4.RELEASE' + } + dependencies { + classpath "org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion" + } } +apply plugin: 'java' +apply plugin: 'org.springframework.boot' + compileJava { options.compilerArgs += ["-h", file("generated_headers")] // options.verbose = true @@ -12,7 +23,7 @@ dependencies { } group 'at.yeoman.photobackup' -version '1.0-SNAPSHOT' +version '1.0.0-SNAPSHOT' sourceCompatibility = 1.8 @@ -25,7 +36,7 @@ repositories { } dependencies { - def springBootVersion = '2.0.4.RELEASE' + compile group: 'org.springframework.boot', name: 'spring-boot-gradle-plugin', version: springBootVersion compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: springBootVersion compile group: 'org.springframework.boot', name: 'spring-boot-starter-thymeleaf', version: springBootVersion @@ -45,3 +56,7 @@ task run(type: JavaExec) { main = 'at.yeoman.photobackup.server.Server' } + +bootJar { + launchScript() +} diff --git a/settings.gradle b/settings.gradle index c9d3ca4..8b13789 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,2 +1 @@ -rootProject.name = 'server' diff --git a/src/test/java/jackson/BasicSerialization.java b/src/test/java/jackson/BasicSerialization.java index ad12d7c..010e71b 100644 --- a/src/test/java/jackson/BasicSerialization.java +++ b/src/test/java/jackson/BasicSerialization.java @@ -9,7 +9,7 @@ public class BasicSerialization { @Test public void deserializeAssetReport() throws IOException { - String json = "{\"descriptions\":[{\"name\":\"hello\"}]}"; + String json = "{\"descriptions\":[{\"name\":\"hello\", \"resourceDescriptions\": []}]}"; System.out.println(json); AssetReport result = new ObjectMapper().readValue(json, AssetReport.class); System.out.println(result);