Skip to content
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

Enable build with Java 21 #5030

Merged
merged 9 commits into from
May 30, 2024
Merged

Enable build with Java 21 #5030

merged 9 commits into from
May 30, 2024

Conversation

pditommaso
Copy link
Member

@pditommaso pditommaso commented May 27, 2024

This PR allows the use of Java 21 to compile Nextflow, keeping backward compatibility with the previous version of Java runtime.

The main problem was the introduction of the SequencedCollection as parent interface for List made by Java 21. This caused the Groovy @Delegate annotation used in some Nextflow classes to automatically provide an implementation for the default methods in this interface which where not available when running in Java 20 or earlier.

Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Copy link

netlify bot commented May 27, 2024

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit 01d91fa
🔍 Latest deploy log https://app.netlify.com/sites/nextflow-docs-staging/deploys/6658baaa3138270008900b3e

@pditommaso pditommaso linked an issue May 27, 2024 that may be closed by this pull request
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
@pditommaso pditommaso changed the title Set Java 11 as target bytecode Enable build with Java 21 May 30, 2024
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
@pditommaso pditommaso merged commit 4c54db6 into master May 30, 2024
21 checks passed
@pditommaso pditommaso deleted the fix-java-21-runtime branch May 30, 2024 20:57
marcodelapierre pushed a commit that referenced this pull request May 31, 2024
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
nathanthorpe pushed a commit to nathanthorpe/nextflow that referenced this pull request May 31, 2024
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Signed-off-by: Nathan Thorpe <nathan@techstormpc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable build with Java 21
2 participants