Build warning when using gradle wrapper from idea

Answered

With IntelliJ 2019.3, when attemping to do a gradle build on a simple project, get these warnings

7:42:04 AM: Executing task 'build'...


> Configure project :
The compile configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 7.0. Please use the implementation configuration instead.
at build_iiitg7u1ihjd7kzgo8ynlz9$_run_closure2.doCall(/lang/java/idea/sample/test1/build.gradle:16)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
The testCompile configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 7.0. Please use the testImplementation configuration instead.
at build_iiitg7u1ihjd7kzgo8ynlz9$_run_closure2.doCall(/lang/java/idea/sample/test1/build.gradle:17)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)


Gradle settings in idea:

Build and run
Buld and run using: Gradle(Default)
Run tests using: Gradle(Default)

Gradle
Use Gradle from: 'gradle-wrapper.properties' file

Based on versions at idea-IU-193.5662.53/plugins/gradle/lib/*, seems like idea is using version 5.2.1 of gradle.

gradle/wrapper/gradle-wrapper.properties is using version 6.0.1 of gradle. If I change version of gradle in this file to 5.2.1, these warnings disappear

Based on my gradle idea settings, I was expecting idea to defer fully to version of gradle specified in project's gradle-wrapper.properties and think that the warnings should not be coming in the first place.

 

0

Please sign in to leave a comment.