diff options
author | MiniDigger | Martin <[email protected]> | 2024-01-01 17:17:59 +0100 |
---|---|---|
committer | MiniDigger | Martin <[email protected]> | 2024-01-01 17:21:52 +0100 |
commit | be328f1d29a541697303d33b117cdb95f43a3a50 (patch) | |
tree | 9ee2a198f85e7227632a33a86e0e893f0c6959e3 /paper-test-plugin/build.gradle.kts | |
parent | ae3378abc93e4fcd0e6e930509ad04c565ff7a4f (diff) | |
download | Paper-be328f1d29a541697303d33b117cdb95f43a3a50.tar.gz Paper-be328f1d29a541697303d33b117cdb95f43a3a50.zip |
revert later, move around a ton of projects to the new desired layout
Diffstat (limited to 'paper-test-plugin/build.gradle.kts')
-rw-r--r-- | paper-test-plugin/build.gradle.kts | 18 |
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) + } +} |