-
Notifications
You must be signed in to change notification settings - Fork 895
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
feat: update gradle 8.7 and use Java 21 to build armeria #5644
Conversation
🔍 Build Scan® (commit: 80b70e3)
|
This is why CI is failing 🙂
|
We use self-hosted runners for which GitHub does not support Docker environments. An attacker may install malicious code to steal our credentials when GitHub actions jobs using sensitive information are running. Let us take over this PR. I will create a new branch based on your PR and add you as a co-author. |
That's pretty fair 🙂 Thanks for the explanation! Good security measures 👍 |
@ikhoon Just letting you know, the existing GitHub runners are successfully building as of yesterday. I had to upgrade ProGuard because 7.3 did not support Java 21. Please LMK if anything comes up. |
Thanks @Dogacel for trying to keep things up-to-date! 🙇 |
capture { | ||
fileFingerprints = true | ||
} |
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.
Why did you manually set this value? It seems the value is enabled by default.
https://docs.gradle.com/develocity/gradle-plugin/api/com/gradle/develocity/agent/gradle/scan/BuildScanCaptureConfiguration.html#getFileFingerprints()
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 believe I was migrating the old taskInputFiles
parameter and found this one as the replacement. We can remove it if it is no longer needed.
@@ -370,7 +370,7 @@ class TestsReportTask extends DefaultTask { | |||
} | |||
|
|||
def graalLauncher = javaToolchains.launcherFor { | |||
languageVersion.set(JavaLanguageVersion.of(17)) | |||
languageVersion.set(JavaLanguageVersion.of(rootProject.ext.buildJdkVersion)) |
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.
Let me revert this change in my local branch because GraalVM does not fully support 21.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':installGraalNativeImage'.
> A problem occurred starting process 'command '/Users/ikhoon/.gradle/jdks/graalvm_community-21-aarch64-os_x/graalvm-community-openjdk-21.0.2+13.1/Contents/Home/lib/installer/bin/gu''
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.
After checking further, I found that there were changes in GraalVM packaging. lib/svm/bin/rebuild-images
and lib/installer/bin/gu
do not exist in version 21.
Upgrading GraalVM needs to be handled as a separate issue.
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.
Interesting, I think in that sense graal builds should be optional based on JVM version. Otherwise it gave me an error regarding class version incompatibility.
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 might not be a required change, I think I got confused because of the warnings proguard threw. I hope it is gonna build after you revert the changes 👍
Motivation: As non-maintainer users can't update GitHub workflow files, this PR supersedes @Dogacel's work (line#5644) Modifications: - Use JDK 21 to run Armeria CI and other jobs - Upgrade Gradle version to 8.7 Result: You can now use Java 21 to build Armeria Co-authored-by: Dogacel <dogacel@gmail.com>
Motivation: As non-maintainer users can't update GitHub workflow files, this PR supersedes @Dogacel's work (line#5644) Modifications: - Use JDK 21 to run Armeria CI and other jobs - Upgrade Gradle version to 8.7 Result: You can now use Java 21 to build Armeria Co-authored-by: Dogacel <dogacel@gmail.com>
Motivation: As non-maintainer users can't update GitHub workflow files, this PR supersedes @Dogacel's work (#5644) Modifications: - Use JDK 21 to run Armeria CI and other jobs - Upgrade Gradle wrapper version to 8.7 Result: You can now use Java 21 to build Armeria Co-authored-by: Dogacel <dogacel@gmail.com>
Superseded by #5667 |
Motivation:
For some reason my IDE tried to use java-21, however it threw an error! When I looked into it, I realized gradle was kinda a old and decided to do the update.
Modifications:
The command I run to upgrade gradle is
gradle wrapper --gradle-version 8.7
.Also did changes regarding the deprecation warnings:
And please update the repository secrets to fix this issue,
Result: