osmith has uploaded this change for review. (
https://gerrit.osmocom.org/c/aram-applet/+/39583?usp=email )
Change subject: gradlew: fix "Unrecognized option: --add-opens"
......................................................................
gradlew: fix "Unrecognized option: --add-opens"
Comment out the code that causes the following errors during build:
+ ./gradlew test
Unrecognized option: --add-opens
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
The build did not abort but this is distracting.
Change-Id: I788e44cfe20ba6a331e8247677ecb5a526c433f7
---
M gradlew
1 file changed, 4 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/aram-applet refs/changes/83/39583/1
diff --git a/gradlew b/gradlew
index 17a9170..f03a59b 100755
--- a/gradlew
+++ b/gradlew
@@ -162,9 +162,10 @@
APP_ARGS=$(save "$@")
# Collect all arguments for the java command, following the shell quoting and
substitution rules
-if $JAVACMD --add-opens java.base/java.lang=ALL-UNNAMED -version ; then
- DEFAULT_JVM_OPTS="--add-opens java.base/java.lang=ALL-UNNAMED
$DEFAULT_JVM_OPTS"
-fi
+# NOTE: commented out as this doesn't work with openjdk-8
+# if $JAVACMD --add-opens java.base/java.lang=ALL-UNNAMED -version ; then
+# DEFAULT_JVM_OPTS="--add-opens java.base/java.lang=ALL-UNNAMED
$DEFAULT_JVM_OPTS"
+# fi
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
"\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath
"\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain
"$APP_ARGS"
--
To view, visit
https://gerrit.osmocom.org/c/aram-applet/+/39583?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: aram-applet
Gerrit-Branch: master
Gerrit-Change-Id: I788e44cfe20ba6a331e8247677ecb5a526c433f7
Gerrit-Change-Number: 39583
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>