Search Gradle plugins

Using the plugins DSL:

plugins {
  id("io.avaje.inject") version "10.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("io.avaje.inject:inject-gradle-plugin:10.1")
  }
}

apply(plugin = "io.avaje.inject")

Using the plugins DSL:

plugins {
  id "io.avaje.inject" version "10.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "io.avaje.inject:inject-gradle-plugin:10.1"
  }
}

apply plugin: "io.avaje.inject"

Learn how to apply plugins to subprojects