modern-java-practices icon indicating copy to clipboard operation
modern-java-practices copied to clipboard

Gradle equivalent of Maven enforcer for build tool versioning

Open binkley opened this issue 1 year ago • 1 comments

The Gradle build is missing the equivalent of Maven's "enforcer" plugin to ensure that the build runs on the right version of Gradle. This means updating gradle.properties, settings.gradle, and build.gradle.

This gap was come across while reviewing the static analysis page.

Note that this was recently marked as unblocked: see https://github.com/kordamp/enforcer-gradle-plugin/issues/17#issuecomment-2265501400.

Acceptance criteria

  • Using the gradlew script continues working (typically it uses the most recent Gradle version)
  • Using older Gradle versions either pass or fail depending on the enforcer rules for version of Gradle

References

  • https://kordamp.org/enforcer-gradle-plugin/

binkley avatar May 28 '24 15:05 binkley

Updated issue for Gradle Enforcer: https://github.com/kordamp/enforcer-gradle-plugin/issues/17#issuecomment-2265301080.

binkley avatar Aug 02 '24 12:08 binkley