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’.


(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(
    at org.gradle.internal.jvm.inspection.JvmVersionDetector.parseJavaVersionCommandOutput(
    at org.gradle.internal.jvm.inspection.JvmVersionDetector.getJavaVersion(
    at org.gradle.internal.jvm.inspection.JvmVersionDetector.getJavaVersion(
    at org.gradle.launcher.cli.BuildActionsFactory.createAction(

(Dean Hiller) #3

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