nextflow-io / nextflow

A DSL for data-driven computational pipelines
http://nextflow.io
Apache License 2.0
2.61k stars 606 forks source link

Enable build with Java 21 #5030

Closed pditommaso closed 1 month ago

pditommaso commented 1 month ago

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.

netlify[bot] commented 1 month ago

Deploy Preview for nextflow-docs-staging canceled.

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