Gradle application plugin broke for jdk9?


(Dean Hiller) #1

Has anyone else seen the issue of the application plugin breaking for gradle 4.8 and jdk9 where it says this

about to build assembleDist

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine java version from ‘9.0.4’.

thanks,
Dean


(Dean Hiller) #2

oh, with stack trace is better. Is this a core gradle api issue?

  • Exception is:
    java.lang.IllegalArgumentException: Could not determine java version from ‘9.0.4’.
    at org.gradle.api.JavaVersion.toVersion(JavaVersion.java:68)
    at org.gradle.internal.jvm.inspection.JvmVersionDetector.parseJavaVersionCommandOutput(JvmVersionDetector.java:96)
    at org.gradle.internal.jvm.inspection.JvmVersionDetector.getJavaVersion(JvmVersionDetector.java:85)
    at org.gradle.internal.jvm.inspection.JvmVersionDetector.getJavaVersion(JvmVersionDetector.java:61)
    at org.gradle.launcher.cli.BuildActionsFactory.createAction(BuildActionsFactory.java:61)

(Dean Hiller) #3

fixed, have to upgrade gradle wrapper twice with the gradle command and update gradle.properties with new gradle version before doing that too.