-
Notifications
You must be signed in to change notification settings - Fork 34
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
Proof of concept decouple Gradle JDK from compiling JDK #234
base: master
Are you sure you want to change the base?
Conversation
Note: * Gradle 8.x supports 8-23 for running Gradle * Gradle 9.x scheduled to support 17-23 for running Gradle https://docs.gradle.org/current/userguide/compatibility.html
public fun addFirst (Lcom/github/ajalt/mordant/rendering/Span;)V | ||
public synthetic fun addFirst (Ljava/lang/Object;)V | ||
public fun addLast (Lcom/github/ajalt/mordant/rendering/Span;)V | ||
public synthetic fun addLast (Ljava/lang/Object;)V |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is interesting, probably default interface methods?
javaLauncher = javaToolchains.launcherFor { | ||
languageVersion.set(JavaLanguageVersion.of(22)) | ||
vendor = JvmVendorSpec.AZUL // Zulu | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -40,7 +40,7 @@ jobs: | |||
- uses: actions/setup-java@v4 | |||
with: | |||
distribution: 'zulu' | |||
java-version: 22 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the advantage of changing this version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'll actually slow down builds because you'll install 17 only to then have to install 22.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, totally correct. I changed it only to prove that the setup is now independent of what JDK is running the Gradle process.
Note:
https://docs.gradle.org/current/userguide/compatibility.html
I ran the CI here: TWiStErRob#1 (https://github.com/TWiStErRob/mordant/actions/runs/11092440186)
This enables developers (contributors) to have almost any JDK they want, not just 22/23.
Feel free to close this if you're not interested, it just came out of me trying to build the project and investigate my issues.