docker-android-nodejs icon indicating copy to clipboard operation
docker-android-nodejs copied to clipboard

Java 17

Open zsperske opened this issue 2 years ago • 5 comments

Thanks so much for these images! Is there a java 17 image or an easy way to change versions ourselves?

zsperske avatar Oct 31 '23 19:10 zsperske

Looking at the EOL (and ended Premier Support) of Java 11, I think we could upgrade to Java 17 as the default Java version overall. I'll check if this affects the other images depending on it (Cordova / Ionic).

see https://endoflife.date/oracle-jdk

beevelop avatar Nov 02 '23 15:11 beevelop

Requirements check failed for JDK 1.8.x! Detected version: 11.0.17

hopeseekr avatar Nov 04 '23 14:11 hopeseekr

@hopeseekr Where are you getting this exception? This looks like you are still using Java 8 in your application.

beevelop avatar Nov 06 '23 15:11 beevelop

I'm getting this exception when trying to run a Gradle command in a Bitbucket pipeline, using the beevelop/android-nodejs:v2023.10.1 image:

Welcome to Gradle 8.0!
For more details see https://docs.gradle.org/8.0/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
* Where:
Build file '/opt/atlassian/pipelines/agent/build/analytics/build.gradle.kts' line: 1
* What went wrong:
An exception occurred applying plugin request [id: 'com.android.library']
> Failed to apply plugin 'com.android.internal.library'.
   > Android Gradle plugin requires Java 17 to run. You are currently using Java 11.
      Your current JDK is located in /usr/lib/jvm/java-11-openjdk-amd64
      You can try some of the following options:
       - changing the IDE settings.
       - changing the JAVA_HOME environment variable.
       - changing `org.gradle.java.home` in `gradle.properties`.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org/
BUILD FAILED in 1m 6s

JulianEzequielPico-MM avatar Nov 30 '23 20:11 JulianEzequielPico-MM

Any updates on when you think this could happen?

zsperske avatar Dec 18 '23 18:12 zsperske