Search Gradle plugins

Using the plugins DSL:

plugins {
  id("io.intrepid.static-analysis") version "1.0-alpha"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.io.intrepid:static-analysis:1.0-alpha")
  }
}

apply(plugin = "io.intrepid.static-analysis")

Using the plugins DSL:

plugins {
  id "io.intrepid.static-analysis" version "1.0-alpha"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.io.intrepid:static-analysis:1.0-alpha"
  }
}

apply plugin: "io.intrepid.static-analysis"

Learn how to apply plugins to subprojects