Search Gradle plugins

Version 0.10 (latest)

Created 17 July 2023.

Gradle Plugin that detects violations of Gradle best practices in Gradle Plugins

Add this plugin to your build using the plugins DSL:

plugins {
  id("com.autonomousapps.plugin-best-practices-plugin") version "0.10"
}

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("com.autonomousapps.plugin-best-practices-plugin:com.autonomousapps.plugin-best-practices-plugin.gradle.plugin:0.10")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("com.autonomousapps.plugin-best-practices-plugin")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("com.autonomousapps.plugin-best-practices-plugin:com.autonomousapps.plugin-best-practices-plugin.gradle.plugin:0.10")
      }
    }
    
    apply(plugin = "com.autonomousapps.plugin-best-practices-plugin")
  • Applying plugins to all subprojects .