Skip to content

openjdk 23 support ? #51

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

Open
azsde opened this issue Nov 18, 2024 · 5 comments
Open

openjdk 23 support ? #51

azsde opened this issue Nov 18, 2024 · 5 comments

Comments

@azsde
Copy link

azsde commented Nov 18, 2024

Hi,

Do you plan on adding a recipe for openjdk 23 ?

@sebveit
Copy link
Contributor

sebveit commented Nov 18, 2024

Hi azsde, since OpenJDK 23 isn't an LTS-version, I'm not going to add it to this layer.

@azsde
Copy link
Author

azsde commented Nov 18, 2024

Hi,

Understood, thank you for letting me know.

Do you think editing the version values in the 21 recipe would work if I need to create my own recipe ?

@sebveit
Copy link
Contributor

sebveit commented Nov 18, 2024

It should work, but don't forget to adapt the checksums and maybe the versions of the dependencies (JVM_RDEPENDS).

Offtopic: Why do you need OpenJDK 23 instead of 21? You can use an OpenJDK version that is equal to or higher than what your app needs. E.g. you app requires Java 11, than you sould use OpenJDK 11 or 17 of this layer.

@azsde
Copy link
Author

azsde commented Nov 18, 2024

The project I'm working on has been compiled with JDK 23 (I don't know why, but it seems to be a hard requirement), and as far as I understand, I need a JRE >=23 for it to work.

@sebveit
Copy link
Contributor

sebveit commented Nov 18, 2024

Not necessarily. It depends on what has been declared on the project as a requirement. The app might only require Java 11 but was compiled with OpenJDK 23 to "byte code" of Java 11. You might check the sources of the app regarding the "hard" version requirement, before you waste time adapting the recipe.

In case you are using Gradle: https://docs.gradle.org/current/userguide/building_java_projects.html#sec:java_cross_compilation

Hope that helps! If you have more questions, just ask.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants