Search Gradle plugins

Using the plugins DSL:

plugins {
  id "source.inject" version "1.4.4"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.sire:Service-source-inject:1.4.4"
  }
}

apply plugin: "source.inject"

Using the plugins DSL:

plugins {
  id("source.inject") version "1.4.4"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.com.sire:Service-source-inject:1.4.4")
  }
}

apply(plugin = "source.inject")

Learn how to apply plugins to subprojects