LendingClub / gradle-maven-plugin

maven plugin to invoke gradle
73 stars 36 forks source link

Could not determine java version from '9.0.1' #39

Open jnorthrup opened 6 years ago

jnorthrup commented 6 years ago

[ERROR] Failed to execute goal org.fortasoft:gradle-maven-plugin:1.0.8:invoke (default) on project connected: Execution default of goal org.fortasoft:gradle-maven-plugin:1.0.8:invoke failed: Could not determine java version from '9.0.1'. -> [Help 1]

intellij eap latest, maven bundled 3.3.9, RELEASE jdk9

mp-loki commented 6 years ago

Same issue here. Looks like the gradle-tooling version has to be updated to 4.3, as described here

raydac commented 6 years ago

underlying gradle tooling api throws the error, as a solution is to override the dependency for the plugin

<plugin>
    <groupId>org.fortasoft</groupId>
    <artifactId>gradle-maven-plugin</artifactId>
    <version>1.0.8</version>
    <dependencies>
       <dependency>
           <groupId>org.gradle</groupId>
           <artifactId>gradle-tooling-api</artifactId>
           <version>4.2.1</version>
       </dependency>
    </dependencies>

    <configuration>
       <gradleVersion>4.2.1</gradleVersion>
            <tasks>
                 <task>clean</task>
                 <task>${gradleGoal}</task>
             </tasks>
    </configuration>
    <executions>
        <execution>
            <phase>compile</phase>
             <goals>
                  <goal>invoke</goal>
              </goals>
        </execution>
   </executions>
</plugin>