Hallo, community! I have a weird situation with G...
# community-support
i
Hallo, community! I have a weird situation with Gradle, that picks up Java 11 JVM instead of a newer Java 17.
Copy code
Running command in /home/runner/work/orunext20-ucl/orunext20-ucl: [/opt/hostedtoolcache/CodeQL/2.21.2/x64/codeql/java/tools/autobuild.sh]
  [2025-05-05 09:31:35] [build-stderr] Picked up JAVA_TOOL_OPTIONS:  -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
  [2025-05-05 09:31:36] [build-stdout] [2025-05-05 09:31:36] Build directory is /home/runner/work/orunext20-ucl/orunext20-ucl/.
  [2025-05-05 09:31:36] [build-stdout] [2025-05-05 09:31:36] Found no Java toolchains in a toolchains file, inspecting environment variables...
  [2025-05-05 09:31:36] [build-stdout] [2025-05-05 09:31:36] Discovered Java toolchain for version 11.0.0 at /usr/lib/jvm/temurin-11-jdk-amd64 in JAVA_HOME_11_X64
  [2025-05-05 09:31:36] [build-stdout] [2025-05-05 09:31:36] Discovered Java toolchain for version 8.0.0 at /usr/lib/jvm/temurin-8-jdk-amd64 in JAVA_HOME_8_X64
  [2025-05-05 09:31:36] [build-stdout] [2025-05-05 09:31:36] Discovered Java toolchain for version 17.0.0 at /usr/lib/jvm/temurin-17-jdk-amd64 in JAVA_HOME_17_X64
  [2025-05-05 09:31:36] [build-stdout] [2025-05-05 09:31:36] Discovered Java toolchain for version 21.0.0 at /usr/lib/jvm/temurin-21-jdk-amd64 in JAVA_HOME_21_X64
  [2025-05-05 09:31:36] [build-stdout] [2025-05-05 09:31:36] Found no Java toolchains in a toolchains file, inspecting environment variables...
  [2025-05-05 09:31:36] [build-stdout] [2025-05-05 09:31:36] Discovered Java toolchain for version 11.0.0 at /usr/lib/jvm/temurin-11-jdk-amd64 in JAVA_HOME_11_X64
  [2025-05-05 09:31:36] [build-stdout] [2025-05-05 09:31:36] Discovered Java toolchain for version 8.0.0 at /usr/lib/jvm/temurin-8-jdk-amd64 in JAVA_HOME_8_X64
  [2025-05-05 09:31:36] [build-stdout] [2025-05-05 09:31:36] Discovered Java toolchain for version 17.0.0 at /usr/lib/jvm/temurin-17-jdk-amd64 in JAVA_HOME_17_X64
  [2025-05-05 09:31:36] [build-stdout] [2025-05-05 09:31:36] Discovered Java toolchain for version 21.0.0 at /usr/lib/jvm/temurin-21-jdk-amd64 in JAVA_HOME_21_X64
  [2025-05-05 09:31:36] [build-stdout] [2025-05-05 09:31:36] Identified 11.0.27 as the newest version of Java supported by the version of Gradle in use. The system default of 11.0.27 is compatible with this.
  [2025-05-05 09:31:36] [build-stdout] [2025-05-05 09:31:36] [autobuild] > ./gradlew --no-daemon -S -Dorg.gradle.dependency.verification=off -Dorg.gradle.warning.mode=none --init-script "/tmp/semmleTempDir15082949693635508564/init.gradle" clean
  [2025-05-05 09:31:36] [build-stdout] [2025-05-05 09:31:36] [autobuild] Picked up JAVA_TOOL_OPTIONS:  -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
  [2025-05-05 09:31:37] [build-stdout] [2025-05-05 09:31:37] [autobuild] Downloading <https://services.gradle.org/distributions/gradle-8.13-bin.zip>
  [2025-05-05 09:31:39] [build-stdout] [2025-05-05 09:31:39] [autobuild] .............10%.............20%.............30%.............40%.............50%.............60%.............70%.............80%.............90%.............100%
  [2025-05-05 09:31:40] [build-stdout] [2025-05-05 09:31:40] [autobuild] Welcome to Gradle 8.13!
My build uses Gradle 8.13 and requires at least JVM 17 (some of plugins requires JVM 17). Do you have any idea why it picks up JVM 11? See log:
Identified 11.0.27 as the newest version of Java supported by the version of Gradle in use. The system default of 11.0.27 is compatible with this.
v
That message is not coming from Gradle
🎯 1
Seems to be a CodeQL problem
i
thanks, now I see it
👌 1