From 18f30d4e5cc984658702454a97a8e0ee990dc5a0 Mon Sep 17 00:00:00 2001 From: PhilippvK Date: Sun, 6 Sep 2020 06:21:41 +0200 Subject: [PATCH] Add statement to client pom.xml to download OSX jre before packaging --- .gitignore | 2 +- client/pom.xml | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 53f499dd..fa670f70 100644 --- a/.gitignore +++ b/.gitignore @@ -85,4 +85,4 @@ dependency-reduced-pom.xml buildNumber.properties .mvn/timing.properties # https://github.com/takari/maven-wrapper#usage-without-binary-jar -.mvn/wrapper/maven-wrapper.jar \ No newline at end of file +.mvn/wrapper/maven-wrapper.jar diff --git a/client/pom.xml b/client/pom.xml index d2254f67..ce447e40 100644 --- a/client/pom.xml +++ b/client/pom.xml @@ -16,6 +16,9 @@ org.moparforia.client.Launcher Playforia Minigolf Client + ${project.build.directory}/downloads + https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u252-b09.1/OpenJDK8U-jre_x64_mac_hotspot_8u252b09.tar.gz + jdk8u252-b09-jre @@ -65,6 +68,26 @@ + + com.googlecode.maven-download-plugin + download-maven-plugin + 1.3.0 + + + download-osx-jre + package + + wget + + + ${project.jre.osx.link} + true + ${project.download.directory} + + + + + sh.tak.appbundler appbundle-maven-plugin @@ -74,6 +97,7 @@ src/main/resources/icons/playforia.icns ${project.mainClass} true + ${project.download.directory}/${project.jre.osx.name} @@ -85,6 +109,7 @@ + com.akathist.maven.plugins.launch4j launch4j-maven-plugin