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.
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 forList
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.