javavscode icon indicating copy to clipboard operation
javavscode copied to clipboard

Gradle Version Number / VersionNumber error message

Open zemirco opened this issue 2 months ago • 1 comments

Dear team,

I'm on Java 25 and Gradle 9.1.0 and since the update I'm getting the following error message when starting the Java project.

Project emerald:
org/gradle/util/VersionNumber
org.gradle.util.VersionNumber:
org/gradle/util/VersionNumber
org.gradle.util.VersionNumber

This didn't happen before and was working fine with Java 24.

Image

As you can see in the following screenshots VSCode tells me that some packages are missing although they're not missing and compilation works fine.

Image

I can even click on those packages, e.g. RestController, and see the source code.

Image

Here is my Java version

openjdk 25 2025-09-16 LTS
OpenJDK Runtime Environment (build 25+37-LTS)
OpenJDK 64-Bit Server VM (build 25+37-LTS, mixed mode, sharing)

And my Gradle version

------------------------------------------------------------
Gradle 9.1.0
------------------------------------------------------------

Build time:    2025-09-18 13:05:56 UTC
Revision:      e45a8dbf2470c2e2474ccc25be9f49331406a07e

Kotlin:        2.2.0
Groovy:        4.0.28
Ant:           Apache Ant(TM) version 1.10.15 compiled on August 25 2024
Launcher JVM:  25 (BellSoft 25+37-LTS)
Daemon JVM:    /Users/zemirco/.sdkman/candidates/java/25-librca (no JDK specified, using current Java home)
OS:            Mac OS X 15.6.1 aarch64

I'm using the Java plugin version 24.1.2.

Thank you, you're awesome 👏

zemirco avatar Oct 07 '25 07:10 zemirco

Thank you @zemirco for using the extension and reporting this issue.

Gradle 9 is supported better in an upcoming version of the extension.

Presently, you may use a Gradle 8.x version, and, with the extension settings of jdk.project.jdkhome value set to JDK-25 home path and, jdk.jdkhome value set to a jdk <= 24, say JDK-21 home.

Please let us know if this resolves the problem for the time being. Thanks.

sid-srini avatar Oct 07 '25 12:10 sid-srini