Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.xenoterracide.gradle.java-lib") version "0.4.7-5-g81fe8b1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.com.xenoterracide.gradle:pluginbundle:0.4.7-5-g81fe8b1")
  }
}

apply(plugin = "com.xenoterracide.gradle.java-lib")

Using the plugins DSL:

plugins {
  id "com.xenoterracide.gradle.java-lib" version "0.4.7-5-g81fe8b1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.xenoterracide.gradle:pluginbundle:0.4.7-5-g81fe8b1"
  }
}

apply plugin: "com.xenoterracide.gradle.java-lib"

Learn how to apply plugins to subprojects