Skip to content

Commit

Permalink
fix: refer to JavaPluginConvention for g9 compat (#3073)
Browse files Browse the repository at this point in the history
improves gradle 9 compatibility by referring to JavaPlugin properties on the convention rather than on the project directly, avoiding the below warning message:

Build file '~/IdeaProjects/uaa/build.gradle': line 84
The org.gradle.api.plugins.JavaPluginConvention type 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.10.2/userguide/upgrading_version_8.html#java_convention_deprecation
        at build_c5l1z2riwxqbf7m8y30n581oy$_run_closure2.doCall$original(~/IdeaProjects/uaa/build.gradle:84)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
        at build_c5l1z2riwxqbf7m8y30n581oy.run(~/IdeaProjects/uaa/build.gradle:55)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
Build file '~/IdeaProjects/uaa/build.gradle': line 85
The org.gradle.api.plugins.JavaPluginConvention type 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.10.2/userguide/upgrading_version_8.html#java_convention_deprecation
        at build_c5l1z2riwxqbf7m8y30n581oy$_run_closure2.doCall$original(~/IdeaProjects/uaa/build.gradle:85)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
        at build_c5l1z2riwxqbf7m8y30n581oy.run(~/IdeaProjects/uaa/build.gradle:55)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
  • Loading branch information
alexanderankin authored Oct 5, 2024
1 parent 2d09616 commit e0df18f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ subprojects {

[compileJava, compileTestJava]*.options*.compilerArgs = ["-Xlint:none", "-nowarn"]

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
java.sourceCompatibility = JavaVersion.VERSION_17
java.targetCompatibility = JavaVersion.VERSION_17

test {
maxParallelForks = 1
Expand Down

0 comments on commit e0df18f

Please sign in to comment.