Search Gradle plugins

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

apply plugin: "com.destroystokyo.papergradle"

Learn how to apply plugins to subprojects