When using the wrapper currently in the repo and Java 8, ./gradlew assemble produces the following output:
Unrecognized option: --illegal-access=permit
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
The option --illegal-access=permit is necessary in some use cases in Java 17 (since some access now have been disabled that produced a warning before). However, by running gradle wrapper --gradle-version 7.2 --distribution-type all I get a wrapper that runs on Java 8, 11 and 17. I would recommend to use this wrapper.
When using the wrapper currently in the repo and Java 8,
./gradlew assemble
produces the following output:The option
--illegal-access=permit
is necessary in some use cases in Java 17 (since some access now have been disabled that produced a warning before). However, by runninggradle wrapper --gradle-version 7.2 --distribution-type all
I get a wrapper that runs on Java 8, 11 and 17. I would recommend to use this wrapper.