Search Gradle plugins

org.ajoberstar.defaults

Plugin providing opinionated defaults for Gradle projects.

https://github.com/ajoberstar/gradle-defaults

Add this plugin to your build using the plugins DSL:

plugins {
  id("org.ajoberstar.defaults") version "0.6.0-milestone.1.dev.2+4c26c17"
}

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("org.ajoberstar.defaults:org.ajoberstar.defaults.gradle.plugin:0.6.0-milestone.1.dev.2+4c26c17")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("org.ajoberstar.defaults")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("org.ajoberstar.defaults:org.ajoberstar.defaults.gradle.plugin:0.6.0-milestone.1.dev.2+4c26c17")
      }
    }
    
    apply(plugin = "org.ajoberstar.defaults")
  • Applying plugins to all subprojects .