Error in build (incompatible with Gradle 9.0.) last version

Alimay last year

Hi
I installed the source code (last version 6.6) and try to build jar with ./gradlew assemble but
This error : Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

my gradle version (Gradle 8.8)

thx

Anton Tananaev last year

What is the full output?

P.S. please do not duplicate your posts in the future.

Alimay last year

Hello
Thx for your reply,
Full Error:

The compileClasspathCopy configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 9.0. Please use another configuration instead. For more information, please refer to https://docs.gradle.org/8.8/userguide/declaring_dependencies.html#sec:deprecated-configurations in the Gradle documentation.
The runtimeClasspathCopy configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 9.0. Please use another configuration instead. For more information, please refer to https://docs.gradle.org/8.8/userguide/declaring_dependencies.html#sec:deprecated-configurations in the GradleThe testCompileClasspathCopy configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 9.0. Please use another configuration instead. For more information, please refer to https://docs.gradle.org/8.8/userguide/declaring_dependencies.html#sec:deprecated-configurations in the GrThe testRuntimeClasspathCopy configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 9.0. Please use another configuration instead. For more information, please refer to https://docs.gradle.org/8.8/userguide/declaring_dependencies.html#sec:deprecated-configurations in the Gr
> Task :compileJava FAILED

gradle-wrapper.properties (from traccar code):

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

java version "23.0.2" 2025-01-21

Anton Tananaev last year

That's clearly not the full output.

Alimay last year
./gradlew assemble --warning-mode all
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reus
> Configure project :
The compileClasspathCopy configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 9.0. Please use another configuration instead. For more information, please refer to https://docs.gradle.org/8.8/userguide/declaring_dependencies.html#sec:deprecated-configurations in the Gradle documentation.
The runtimeClasspathCopy configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 9.0. Please use another configuration instead. For more information, please refer to https://docs.gradle.org/8.8/userguide/declaring_dependencies.html#sec:deprecated-configurations in the GradleThe testCompileClasspathCopy configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 9.0. Please use another configuration instead. For more information, please refer to https://docs.gradle.org/8.8/userguide/declaring_dependencies.html#sec:deprecated-configurations in the GrThe testRuntimeClasspathCopy configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 9.0. Please use another configuration instead. For more information, please refer to https://docs.gradle.org/8.8/userguide/declaring_dependencies.html#sec:deprecated-configurations in the Gr
> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> error: invalid source release: 17

* 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 3m 52s
5 actionable tasks: 4 executed, 1 up-to-date
Anton Tananaev last year

Hopefully you can see the real error in this output:

error: invalid source release: 17

This likely means you're trying to compile with an old JDK.

Alimay last year

I have java version "23.0.2" 2025-01-21
must be upgrade to jdk 24 ?

Alimay last year

yes it work now
thx you