diff --git a/pom.xml b/pom.xml index d2cd731026ea81fbf2827fac218fb814af303a35..60999f84bed40a3af2255f2b9cd3c6d870d3fd98 100644 --- a/pom.xml +++ b/pom.xml @@ -32,15 +32,15 @@ </repository> </repositories> + <parent> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-parent</artifactId> + <version>1.5.13.RELEASE</version> + <relativePath/> + </parent> + <dependencyManagement> <dependencies> - <dependency> - <groupId>org.springframework.boot</groupId> - <artifactId>spring-boot-dependencies</artifactId> - <version>${spring-boot-dependencies.version}</version> - <type>pom</type> - <scope>import</scope> - </dependency> <dependency> <groupId>de.thecodelabs</groupId> <artifactId>jlibs</artifactId> @@ -56,7 +56,6 @@ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <java.version>1.8</java.version> - <spring-boot-dependencies.version>1.5.13.RELEASE</spring-boot-dependencies.version> <jlibs.version>2.0.1</jlibs.version> <app.versionDate>${maven.build.timestamp}</app.versionDate> @@ -125,23 +124,7 @@ </dependencies> <build> - <resources> - <resource> - <directory>src/main/resources</directory> - <filtering>true</filtering> - </resource> - </resources> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>${java.version}</source> - <target>${java.version}</target> - </configuration> - </plugin> - <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> diff --git a/src/main/java/de/deadlocker8/budgetmaster/Build.java b/src/main/java/de/deadlocker8/budgetmaster/Build.java index 3799865532233e6d8d6c0fc7f0862983b13d4fbe..47e2748f79526c5ea2760728815005bc49151d9d 100644 --- a/src/main/java/de/deadlocker8/budgetmaster/Build.java +++ b/src/main/java/de/deadlocker8/budgetmaster/Build.java @@ -28,7 +28,7 @@ public class Build { if(instance == null) { - instance = Storage.load(Build.class.getClassLoader().getResourceAsStream("build.properties"), StorageTypes.PROPERTIES, Build.class); + instance = Storage.load(Build.class.getClassLoader().getResourceAsStream("application.properties"), StorageTypes.PROPERTIES, Build.class); } return instance; } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 6a3c3f3409d6d147ec1c12dc4399735be610bff3..b8447f52bbba20f5c4e899091a77fe34e51f59b4 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -5,4 +5,11 @@ spring.jpa.hibernate.ddl-auto=update spring.jpa.properties.jadira.usertype.autoRegisterUserTypes = true spring.http.multipart.max-file-size=100MB -spring.http.multipart.max-request-size=100MB \ No newline at end of file +spring.http.multipart.max-request-size=100MB + + +app.name=@project.artifactId@ +app.version.code=@app.versionCode@ +app.version.name=@project.version@ +app.version.date=@app.versionDate@ +app.author=@app.author@ diff --git a/src/main/resources/build.properties b/src/main/resources/build.properties deleted file mode 100644 index 6f0fcb7114a5b2e5ac239faefd34bbd53ca22c52..0000000000000000000000000000000000000000 --- a/src/main/resources/build.properties +++ /dev/null @@ -1,5 +0,0 @@ -app.name=${pom.artifactId} -app.version.code=${app.versionCode} -app.version.name=${pom.version} -app.version.date=${app.versionDate} -app.author=${app.author} \ No newline at end of file