Skip to content

Commit 7cf19cf

Browse files
committed
Fixed recognition of JDK version number
1 parent 12addd0 commit 7cf19cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gradlew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ APP_ARGS=$(save "$@")
163163

164164
# Collect all arguments for the java command, following the shell quoting and substitution rules
165165
version=$("$JAVACMD" -version 2>&1 | sed -e '1{;s/^[^"]*"//;s/[.].*$//;q;}')
166-
if [ "X$version" != "X" ] && [ "$version" -ge 9 ]; then
166+
if [ "X$version" != "X" ] && [ "0$version" -ge 9 ]; then
167167
JAVA9="--illegal-access=permit"
168168
else
169169
JAVA9=""

0 commit comments

Comments
 (0)