Hello,
I have no idea at all whether capsule can be avoided to package nextflow.Sure. Maybe I will take a look at digging the code of the nextflow in the future.
I would suggest turning to Java packaging team regarding capsules. They might know how to substitute them with Debian-provided JARs.
Best,
Andrius