From b63aa8cfc1bb822b7701dc647706b11b5476697b Mon Sep 17 00:00:00 2001 From: Col-E Date: Wed, 14 Apr 2021 20:36:30 -0400 Subject: [PATCH] Simplify build process --- build | 15 ++----- build.cmd | 28 ++++--------- pom.xml | 118 ++++++++++++++++++------------------------------------ 3 files changed, 50 insertions(+), 111 deletions(-) diff --git a/build b/build index 612f5e87b..b38ce34b0 100755 --- a/build +++ b/build @@ -3,15 +3,10 @@ set -e echo '===========================' echo 'Build Modes' echo '------' -echo 'Java 8' -echo ' 1. Full build with tests' -echo ' 2. Fast build with no tests' +echo ' 1. Build with tests (Slow)' +echo ' 2. Build with no tests (Fast)' echo '------' -echo 'Java 11 or higher' -echo ' 3. Full build with tests' -echo ' 4. Fast build with no tests' -echo '------' -echo ' 5. Exit' +echo ' 3. Exit' echo '===========================' echo -n 'Enter build mode: ' read mode @@ -19,8 +14,4 @@ if [[ $mode == '1' ]]; then ./mvnw clean package; elif [[ $mode == '2' ]]; then ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip; -elif [[ $mode == '3' ]]; then - ./mvnw clean package -P java11; -elif [[ $mode == '4' ]]; then - ./mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip -P java11; fi; \ No newline at end of file diff --git a/build.cmd b/build.cmd index 8732df3df..0ab4f3d69 100644 --- a/build.cmd +++ b/build.cmd @@ -2,32 +2,18 @@ ECHO =========================== ECHO Build Modes ECHO ------ -ECHO Java 8 -ECHO 1. Full build with tests -ECHO 2. Fast build with no tests +ECHO 1. Build with tests (Slow) +ECHO 2. Build with no tests (Fast) ECHO ------ -ECHO Java 11 or higher -ECHO 3. Full build with tests -ECHO 4. Fast build with no tests -ECHO ------ -ECHO 5. Exit +ECHO 3. Exit ECHO =========================== SET /P MODE=Mode: -IF %MODE%==1 GOTO FULL8 -IF %MODE%==2 GOTO FAST8 -IF %MODE%==3 GOTO FULL11 -IF %MODE%==4 GOTO FAST11 -IF %MODE%==5 GOTO END -:FULL8 +IF %MODE%==1 GOTO FULL +IF %MODE%==2 GOTO FAST +:FULL call mvnw clean package GOTO END -:FAST8 +:FAST call mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip GOTO END -:FULL11 -call mvnw clean package -P java11 -GOTO END -:FAST11 -call mvnw clean package -Dmaven.test.skip -Dcheckstyle.skip -P java11 -GOTO END :END \ No newline at end of file diff --git a/pom.xml b/pom.xml index c32b2e992..14f7619d5 100644 --- a/pom.xml +++ b/pom.xml @@ -41,84 +41,6 @@ https://github.com/Col-E/jdk-tools-mirror/raw/master/repository/ - - - - java8 - - J8 - - - - 1.8 - - - - - - maven-compiler-plugin - 3.8.1 - - 1.8 - 1.8 - - -Xlint:unchecked - - - - - - - - java11 - - J11 - - - - [11, 13] - - - - - org.openjfx - javafx-base - ${jfx.version} - - - - org.openjfx - javafx-graphics - ${jfx.version} - - - - org.openjfx - javafx-controls - ${jfx.version} - - - - org.openjfx - javafx-media - ${jfx.version} - - - - - - - maven-compiler-plugin - 3.8.0 - - 8 - 8 - - - - - - @@ -312,6 +234,34 @@ 8.0 provided + + + org.openjfx + javafx-base + ${jfx.version} + provided + + + + org.openjfx + javafx-graphics + ${jfx.version} + provided + + + + org.openjfx + javafx-controls + ${jfx.version} + provided + + + + org.openjfx + javafx-media + ${jfx.version} + provided + @@ -372,6 +322,18 @@ + + + maven-compiler-plugin + 3.8.1 + + 1.8 + 1.8 + + -Xlint:unchecked + + + org.codehaus.mojo