Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.github.wrdlbrnft.proguard-annotations") version "0.3.0.12"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.ProguardAnnotations:proguard-annotations:0.3.0.12")
  }
}

apply(plugin = "com.github.wrdlbrnft.proguard-annotations")

Using the plugins DSL:

plugins {
  id "com.github.wrdlbrnft.proguard-annotations" version "0.3.0.12"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.ProguardAnnotations:proguard-annotations:0.3.0.12"
  }
}

apply plugin: "com.github.wrdlbrnft.proguard-annotations"

Learn how to apply plugins to subprojects