Skip to content

Instantly share code, notes, and snippets.

@NyCodeGHG
Created Jan 1, 2022
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