From 4f2021881bf341b77a50968bc82dc935915f51f2 Mon Sep 17 00:00:00 2001 From: Robert Goldmann <deadlocker@gmx.de> Date: Tue, 3 Oct 2017 18:15:49 +0200 Subject: [PATCH] preparations for v1.6.0, added exe generation to maven pom --- .gitignore | 4 +- BudgetMasterClient/pom.xml | 44 +++++++++++++++---- .../budgetmaster/languages/_de.properties | 4 +- .../budgetmaster/languages/_en.properties | 4 +- BudgetMasterServer/pom.xml | 14 +++--- .../budgetmasterserver/_en.properties | 4 +- 6 files changed, 50 insertions(+), 24 deletions(-) diff --git a/.gitignore b/.gitignore index ba528a19e..ae91f7292 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ bin/ target/ -certs/ \ No newline at end of file +certs/ + +build/[0-9]*.[0-9]*.[0-9]* \ No newline at end of file diff --git a/BudgetMasterClient/pom.xml b/BudgetMasterClient/pom.xml index 569c1b54b..0fd1b201a 100644 --- a/BudgetMasterClient/pom.xml +++ b/BudgetMasterClient/pom.xml @@ -10,14 +10,50 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> + <version>3.7.0</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> + <!-- LAUNCH4J --> + <plugin> + <groupId>com.akathist.maven.plugins.launch4j</groupId> + <artifactId>launch4j-maven-plugin</artifactId> + <version>1.7.21</version> + <executions> + <execution> + <id>l4j-clui</id> + <phase>package</phase> + <goals> + <goal>launch4j</goal> + </goals> + <configuration> + <headerType>gui</headerType> + <jar>../build/${project.version}/BudgetMasterClient-v${project.version}.jar</jar> + <outfile>../build/${project.version}/BudgetMasterClient-v${project.version}.exe</outfile> + <downloadUrl>http://java.com/download</downloadUrl> + <classPath> + <mainClass>de.deadlocker8.budgetmasterclient.main.Main</mainClass> + </classPath> + <jre> + <bundledJre64Bit>false</bundledJre64Bit> + <bundledJreAsFallback>false</bundledJreAsFallback> + <minVersion>1.8.0</minVersion> + <jdkPreference>preferJre</jdkPreference> + <runtimeBits>64/32</runtimeBits> + </jre> + <icon>../build/icon.ico</icon> + </configuration> + </execution> + </executions> + </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> + <outputDirectory>../build/${project.version}</outputDirectory> + <finalName>BudgetMasterClient-v${project.version}</finalName> + <appendAssemblyId>false</appendAssemblyId> <archive> <manifest> <mainClass>de.deadlocker8.budgetmasterclient.main.Main</mainClass> @@ -37,14 +73,6 @@ </execution> </executions> </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jar-plugin</artifactId> - <version>3.0.2</version> - <configuration> - <outputDirectory>../build</outputDirectory> - </configuration> - </plugin> </plugins> </build> diff --git a/BudgetMasterClient/src/main/resources/de/deadlocker8/budgetmaster/languages/_de.properties b/BudgetMasterClient/src/main/resources/de/deadlocker8/budgetmaster/languages/_de.properties index cbf29d3b3..5a19c4b0a 100644 --- a/BudgetMasterClient/src/main/resources/de/deadlocker8/budgetmaster/languages/_de.properties +++ b/BudgetMasterClient/src/main/resources/de/deadlocker8/budgetmaster/languages/_de.properties @@ -1,8 +1,8 @@ # DEFAULT app.name=BudgetMaster version.code=10 -version.name=1.6.0_alpha -version.date=31.08.17 +version.name=1.6.0 +version.date=03.10.17 author=Robert Goldmann credits=L�nderflaggen von Freepik auf https://www.flaticon.com\nVerwendete Schriftarten: OpenSans diff --git a/BudgetMasterClient/src/main/resources/de/deadlocker8/budgetmaster/languages/_en.properties b/BudgetMasterClient/src/main/resources/de/deadlocker8/budgetmaster/languages/_en.properties index 1620c6e72..0214f27fd 100644 --- a/BudgetMasterClient/src/main/resources/de/deadlocker8/budgetmaster/languages/_en.properties +++ b/BudgetMasterClient/src/main/resources/de/deadlocker8/budgetmaster/languages/_en.properties @@ -1,8 +1,8 @@ # DEFAULT app.name=BudgetMaster version.code=10 -version.name=1.6.0_alpha -version.date=31.08.17 +version.name=1.6.0 +version.date=03.10.17 author=Robert Goldmann credits=Flags by Freepik on https://www.flaticon.com\nFonts used: OpenSans diff --git a/BudgetMasterServer/pom.xml b/BudgetMasterServer/pom.xml index 55aab25b3..f0aff38da 100644 --- a/BudgetMasterServer/pom.xml +++ b/BudgetMasterServer/pom.xml @@ -10,6 +10,7 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> + <version>3.7.0</version> <configuration> <source>1.8</source> <target>1.8</target> @@ -18,6 +19,9 @@ <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> + <outputDirectory>../build/${project.version}</outputDirectory> + <finalName>BudgetMasterServer-v${project.version}</finalName> + <appendAssemblyId>false</appendAssemblyId> <archive> <manifest> <mainClass>de.deadlocker8.budgetmasterserver.main.Main</mainClass> @@ -36,15 +40,7 @@ </goals> </execution> </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jar-plugin</artifactId> - <version>3.0.2</version> - <configuration> - <outputDirectory>../build</outputDirectory> - </configuration> - </plugin> + </plugin> </plugins> </build> diff --git a/BudgetMasterServer/src/main/resources/de/deadlocker8/budgetmasterserver/_en.properties b/BudgetMasterServer/src/main/resources/de/deadlocker8/budgetmasterserver/_en.properties index 9a6167b39..8de2a69fb 100644 --- a/BudgetMasterServer/src/main/resources/de/deadlocker8/budgetmasterserver/_en.properties +++ b/BudgetMasterServer/src/main/resources/de/deadlocker8/budgetmasterserver/_en.properties @@ -1,7 +1,7 @@ app.name=BudgetMasterServer version.code=10 -version.name=1.6.0_alpha -version.date=31.08.17 +version.name=1.6.0 +version.date=03.10.17 author=Robert Goldmann category.none=No Category -- GitLab