Java 19 has new features: virtual threads (as preview) and structured concurrency (as incubator). Gradle 7.6 will support Java 19. Given that 7.6-rc-1 is available, how can I try out these new features? I have working Bash scripts like the following:
compile:
javac --release 19 --enable-preview \
--add-modules jdk.incubator.concurrent \
-cp $CLASSPATH \
[snip]
run:
java --enable-preview \
-cp $CLASSPATH \
--add-modules jdk.incubator.concurrent \
net.codetojoy.Runner
How are these flags translated into Gradle?