-
Notifications
You must be signed in to change notification settings - Fork 5
2281: Upgrade to JRE 25 #2657
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
base: main
Are you sure you want to change the base?
2281: Upgrade to JRE 25 #2657
Conversation
71f5ec4 to
07cdc7d
Compare
42cab4c to
0b6ec0d
Compare
|
|
I tested your draft and it works well so far. I get some warnings during backend start but i guess you also realized this |
I am not sure which variable you mean. I don't have immediate feedback here. As long as everything works, these changes seem fine to me (without having checked them in depth :D ) |
For me it mostly didn't work, though more often in the last few days, strangely enough. But yes, with this configuration, Gradle should chose the correct version automatically.
Thanks, I'll try it.
I would prefer to do this in a separate PR. The general advice here is to test this thoroughly.
I saw those, these are from one of our dependencies. We could suppress them, but I'd rather have them as a reminder to update our dependencies regularly.
The IntelliJ config option removed here: https://github.com/digitalfabrik/entitlementcard/pull/2657/files#diff-952b752681ded498853ce6363aa309aac9e6bd15fe12a907be0b8d2142d1fa21L8 |
|
I guess we also have to update the jdk on our Servers before doing a release |
|
The JDK update is tracked here: https://tasks.tuerantuer.org/projects/infra/work_packages/4793/activity |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
🙈 sure... looks like it's monday |
1945586 to
e1d364b
Compare
0b6ec0d to
8d35c9c
Compare
# Conflicts: # backend/build.gradle.kts
4a0ef01 to
10c62a3
Compare
e65277a to
4e72bd8
Compare
f70b6f4 to
317fc9e
Compare
|
So after literally hours of figuring out, why the "main" jar was not packaged into the tasks.withType<Zip>().configureEach {
enabled = false
}@seluianova |
317fc9e to
f50a403
Compare
I don't get why there are such side effects but okay. I think with Java 17 there were no issues at all? Didn't know that there is a particular job in gradle |
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 get only issue running distTar probably typo
Thx for improving docs
f50a403 to
c042e3b
Compare
I tested this with JDK 17, 21 and 25 as the Gradle platform. All had the same effect, with tasks.withType<Zip>().configureEach {
enabled = false
}the main jar in the dist tar is missing. So I'm pretty sure this did not ever work on a real deployment. |
|
Maybe it would be good to know which issues exactly you are talking about. @seluianova deployed it with java 17 on staging and we couldn't figure out issues directly after deployment |
|
Steps to reproduce:
This is because the file
|
actually I applied this suggestion after the deployment, so yes, this issue could happen. |
seluianova
left a comment
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.
lgtm!
|
I'll wait with merging this PR until JDK 25 is available on our server: https://tasks.tuerantuer.org/projects/infra/work_packages/4793/activity |
|
@andrew8er jdk25 is running on staging server. afaics it runs stable. I think we can merge this pr |
|
It needs another review. |
Short Description
Upgrades the required build JDK to 25.
Proposed Changes
sourceCompatibilityandtargetCompatibilityare still set to 24, since Kotlin does not support 25 at the moment. This will be resolved soon after updating to Kotlin 2.3.0, which is in beta now:entitlementcard-jdkIntelliJ option. Let users just declare a "project SDK".install_temurincommand and add it topack_backendjob.SENTRY_AUTH_TOKEN, useSENTRY_BACKEND_AUTH_TOKENdirectly.Open questions
entitlementcard-jdkvariable? I think it just posed a layer of indirection.pack_backendjob?Side Effects
None
Testing
Resolved Issues
Fixes: #2281