Skip to content

Commit

Permalink
Remove Gson Java version overwrite (#7086)
Browse files Browse the repository at this point in the history
Gson minimum Java target version has been increased to Java 7, it is
therefore no longer necessary to manually overwrite it here.
  • Loading branch information
Marcono1234 committed Jan 2, 2022
1 parent 273eead commit 29b1136
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions projects/gson/build.sh
Expand Up @@ -15,12 +15,9 @@
#
################################################################################

# Change Java version because Gson is currently compiled with Java 6, which is only
# supported up to JDK 11, but Docker image uses newer JDK
# Additionally choose >= Java 9 because tests won't compile otherwise (JDK-7196160)
# Skip ProGuard because it is only needed for tests (which are skipped as well) and
# because it would fail since `jmods` JDK folder is removed from this Docker image
MAVEN_ARGS="-DskipTests -Dmaven.compiler.release=9 -Dproguard.skip -X"
MAVEN_ARGS="-DskipTests -Dproguard.skip -X"
# Only build 'gson' Maven module
cd gson
$MVN --batch-mode --update-snapshots package ${MAVEN_ARGS}
Expand Down

0 comments on commit 29b1136

Please sign in to comment.