-
Notifications
You must be signed in to change notification settings - Fork 18
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
Upgrade to Gradle 8.10 and JDK 21 #877
base: develop
Are you sure you want to change the base?
Conversation
This may address issue #669 |
We will want to make sure that all code and documentation references point to the most recent version of Temurin 21 LTS. This it will be important in order to make sure the golden hashing procedure works correctly. Should also probably change Oracle references to Temurin |
@nurse-the-code I come from corporate closed source where I don't have a choice in which JDK distro I use :) Is this the version you want linked to from the README? https://adoptium.net/temurin/releases/?version=21 Do these two lines need to be updated as well?
|
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.
I suspect we will indeed need to update the github workflows as well. This approval should trigger the workflow. Thank you again!
(Approval is pending additional review from @nurse-the-code to make sure the wiki and all documentation matches. Some of that lives outside this repo. Only approving to get the workflows to run.)
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.
Workflow did not run, trying again...
This commit is the automated result of running `gradle wrapper --gradle-version 8.10` follwing the instructions at https://docs.gradle.org/current/userguide/upgrading_version_8.html Gradle 8.4+ is requried for JDK 21 Testing: * ./gradlew run and ./gradlew build both succeed
cdc6487
to
91c5bf5
Compare
Alright. I have zero experience with GitHub, and none of my normal ways of working seem to apply out here, so you'll have to forgive me if I'm doing things in ways that don't make sense to you! I'm open to feedback and/or instruction :) I force-pushed a revision with the following changes:
Testing:
@artoonie Let me know if you want to merge all of this work together from this PR or if you want me to pull your commit back off of my branch to merge them separately. |
Correct. As long as it is the most recent LTS version of 21. I had meant to put that link in but it looks like I forgot to do that.
That looks like what I was thinking of. Whoever does the code review on this (probably either myself or @yezr) should search to make sure any references to the Java version throughout the code base point to the new version. And if we are referencing specific JDK or JRE packages, we need to make sure that we are pointing to the Temurin LTS builds. And as @artoonie said, documentation will have to be updated. Included in that should be directing users to use the correct Temurin builds (in case they want to check the golden hash). As a bonus (doesn't have to be in this PR and is not critical for the RCTab 2.0 work), in the documentation we could direct users to using something like JEnv to manage different Java versions. |
I'm good with the change in this PR -- I'll close my other PR! @alyssahursh
Done, and I don't see any missed references @nurse-the-code
Are you okay merging this first then updating the docs @nurse-the-code ? -- This PR looks good to me, and will await @nurse-the-code's approval re: documentation before merging. |
I've added a task in our RCTab internal tracker to update all documentation references to Java 21 and Gradle 8.10. LGTM! |
This upgrade fails the release scripts because of incompatibilities with Mac releases fail at
Compared with a recent successful run:
It looks like It looks like this is due to the fact that I don't have access to the repo secrets. I'll amend the |
JDK 20 is a feature release and is not recommended for use in production: https://www.oracle.com/java/technologies/javase/jdk20-archive-downloads.html JDK 21 is the latest long-term support (LTS) release of the JDK: https://www.oracle.com/java/technologies/downloads/#java21 After accepting this commit, you will need to install JDK 21 and update JAVA_HOME to point to the file system location where JDK 21 is installed Testing: * ./gradlew run and ./gradle build both succeed
82575a6
to
6dfe958
Compare
I force-pushed a revision with the following changes:
Testing:
|
Thank you! That testing procedure is fine; we have a scheduled release build every 2 weeks that will let us know if the mac build is somehow failing. (It's unlikely if the other two pass, unless we need to accept a new apple agreement.) 👍 |
Motivation
Commits
This PR contains two atomic commits, each of which build and run successfully
gradle wrapper --gradle-version 8.10
)Testing
./gradlew build
and./gradlew run
both succeedNote
After accepting this commit, you will need to install JDK 21 and update JAVA_HOME to point to the file system location where JDK 21 is installed