aboutsummaryrefslogtreecommitdiffhomepage
path: root/paper-test-plugin/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'paper-test-plugin/build.gradle.kts')
-rw-r--r--paper-test-plugin/build.gradle.kts18
1 files changed, 18 insertions, 0 deletions
diff --git a/paper-test-plugin/build.gradle.kts b/paper-test-plugin/build.gradle.kts
new file mode 100644
index 0000000000..3fb24f3f13
--- /dev/null
+++ b/paper-test-plugin/build.gradle.kts
@@ -0,0 +1,18 @@
+version = "1.0.0-SNAPSHOT"
+
+dependencies {
+ compileOnly(project(":paper-api"))
+}
+
+tasks.processResources {
+ val apiVersion = rootProject.providers.gradleProperty("mcVersion").get()
+ .split(".", "-").take(2).joinToString(".")
+ val props = mapOf(
+ "version" to project.version,
+ "apiversion" to "\"$apiVersion\"",
+ )
+ inputs.properties(props)
+ filesMatching("paper-plugin.yml") {
+ expand(props)
+ }
+}