corretto25: init at 25.0.1.9.1#472392
Conversation
There was a problem hiding this comment.
Instead of adding extraNativeBuildInputs, I might as well simply add pandoc to all corretto builds, eventhough it is only used starting at v25. 🤔
There was a problem hiding this comment.
The patch is new and added by me (see below). I wonder why the patch is needed, though. I thought the !atLeast23 from here means that the patching is not necessary anymore starting with openJDK 23 and higher. Both openJDK-25 and corretto-25 have disabled format warnings in exactly the same way IMHO. But then, why is it not needed to patch this for jdk25 but for corretto25?
|
Is there a good argument for having corretto packaged in the first place? Are there advantages over upstream OpenJDK? |
This topic has been discussed in the past. I have commented on this here (see also my comment just below that one) and here. I am the maintainer of the corretto package and have contiguously maintained it for >3 years now. |
| @@ -0,0 +1,41 @@ | |||
| { | |||
| fetchFromGitHub, | |||
| gradle_8, | |||
There was a problem hiding this comment.
I think this needs to be built using Gradle 9. At the moment the build fails with BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 69 (gradle/gradle#35111)
There was a problem hiding this comment.
@FliegendeWurst Thank you for looking into this so thoroughly. I am sure it worked previously but I can indeed reproduce this locally now. I wonder what happened in the meantime.
Anyways, indeed only gradle9 supports java25. I have tried to use gradle_9 but run into various problems (Gradle9 seems to be more strict and ans backwards-imcompatible changes it seems). Corretto25 is expected to be build by Gradle 8. I did apply some workarounds and at least it compiles for me right now. I'll have to clean up the mess and check that it actually works. I will update you once this is done.
|
@FliegendeWurst Thanks for checking, approving & merging! |
This PR adds corretto-25 as a new package using the existing infrastructure for corretto builds.
FYI, my previous corretto-related PR is #459071.
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.