Skip to content

Instantly share code, notes, and snippets.

@NyCodeGHG
Created January 1, 2022 16:01
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Gradle Paper Plugin Example
plugins {
java
}
group = "dev.nycode"
version = "1.0-SNAPSHOT"
repositories {
maven("https://papermc.io/repo/repository/maven-public/")
}
dependencies {
compileOnly("io.papermc.paper", "paper-api", "1.18.1-R0.1-SNAPSHOT")
}
tasks {
processResources {
from(sourceSets.main.get().resources.srcDirs) {
filesMatching("plugin.yml") {
expand("version" to project.version)
}
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment