php-java-bridge icon indicating copy to clipboard operation
php-java-bridge copied to clipboard

Upgrade gradle-wrapper to > 5.0 to support JDK 11

Open PL4typus opened this issue 5 years ago • 2 comments

Gradle added support for JDK11 in 5.0.

Currently, using ./gradlew with default-jdk (openjdk-11-jdk) on Debian GNU/Linux bullseye/sid gives the following error:

Unzipping /root/.gradle/wrapper/dists/gradle-3.5-bin/daoimhu7k5rlo48ntmxw2ok3e/gradle-3.5-bin.zip to /root/.gradle/wrapper/dists/gradle-3.5-bin/daoimhu7k5rlo48ntmxw2ok3e
Set executable permissions for: /root/.gradle/wrapper/dists/gradle-3.5-bin/daoimhu7k5rlo48ntmxw2ok3e/gradle-3.5/bin/gradle

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine java version from '11.0.9.1'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

PL4typus avatar Jan 05 '21 13:01 PL4typus

Can you help with a PR ? Would be fantastic .

belgattitude avatar Jan 06 '21 22:01 belgattitude

Can you help with a PR ? Would be fantastic .

I created one just now. I tried updating to the latest version of gradle for gradle-wrapper, but it causes a lot of conflict that I'm afraid I can't solve that easily, as I'm unfamiliar with gradle.

This PR updates to 5.0, which caused less conflicts and still allows to use JDK 11 now.

PL4typus avatar Jan 07 '21 09:01 PL4typus