-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support using the plugin with Java 8 #97
Comments
It looks like: gradle-jdks/gradle-jdks/src/main/java/com/palantir/gradle/jdks/JdkManager.java Lines 192 to 208 in d598c41
I'm not entirely sure why .. but that's likely what's breaking things here .. This code appears to be looking for gradle-jdks/gradle-jdks/src/main/java/com/palantir/gradle/jdks/SystemTools.java Lines 22 to 27 in d598c41
Which seems to contribute to the problem... hmmm |
There are some situations where using `bin/java` as a heuristic to find JAVA_HOME within a JDK package can result in mistakenly finding a JRE root instead. Looking for `bin/javac` fixes this since JREs do not have `javac`. This should fix palantir#97
There are some situations where using `bin/java` as a heuristic to find JAVA_HOME within a JDK package can result in mistakenly finding a JRE root instead. Looking for `bin/javac` fixes this since JREs do not have `javac`. This should fix palantir#97
This is saying the JDK you are running Gradle with is a Java 8 JDK, and this plugin (all our gradle plugins + libraries) require Java 11 to run. You'll need to upgrade to JDK you use (Java 8 has been end of life since 31 Mar 2022). Eventually we'll start requiring Java 17 for Gradle plugins and libraries. An upcoming feature of this project will be managing the JDK used to run Gradle, which will make this much easier to roll out to users, as it will automatically install the right JDK even if they have no JDKs installed. I cannot give any definitive timeline when we actually get around to building that feature though, although we kinda need it soon internally. |
What happened?
I tried to add the plugin to our project FitNesse. I added the plugin to the
plugins
block and added the following configWhen I tried to build I got:
What did you want to happen?
I would have liked to be able to use this plugin also when my gradle is using Java 8
The text was updated successfully, but these errors were encountered: