Search Gradle plugins

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

apply plugin: "com.destroystokyo.papergradle"

Learn how to apply plugins to subprojects