kazurayam / selenium-webdriver-java

Examples of the O'Reilly book "Hands-On Selenium WebDriver with Java"
https://oreil.ly/1E7CX
Apache License 2.0
0 stars 0 forks source link

Gradle v8.4 warned "The Project.getConvention() method has been deprected. This is scheduled to be removed in Gradle 9.0." #7

Open kazurayam opened 10 months ago

kazurayam commented 10 months ago

At the end of #5 issue, the gradle build show the following message:

:~/github/selenium-webdriver-java (kazurayam5)
$ gradle clean compileTestJava

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.4/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD SUCCESSFUL in 12s
16 actionable tasks: 16 executed

So I tried the same with --warning-mode all option specified:

:~/github/selenium-webdriver-java (kazurayam5)
$ gradle --warning-mode all clean compileTestJava

> Configure project :selenium-webdriver-junit4
The Project.getConvention() method has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.4/userguide/upgrading_version_8.html#deprecated_access_to_conventions

BUILD SUCCESSFUL in 10s
16 actionable tasks: 16 executed

refer to https://docs.gradle.org/8.4/userguide/upgrading_version_8.html#deprecated_access_to_conventions

kazurayam commented 10 months ago

I looked at the build.gradle file of the selenium-webdriver-junit4 subproject at

In this file, I could not find a fragment Project.getConvention().

Where should I look at more? I have no idea.