Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.destroystokyo.papergradle") version "1.0.4"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.com.destroystokyo.papergradle:PaperGradle:1.0.4")
  }
}

apply(plugin = "com.destroystokyo.papergradle")

Using the plugins DSL:

plugins {
  id "com.destroystokyo.papergradle" version "1.0.4"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.destroystokyo.papergradle:PaperGradle:1.0.4"
  }
}

apply plugin: "com.destroystokyo.papergradle"

Learn how to apply plugins to subprojects