Move package version to server project

This commit is contained in:
Kyle Wood 2021-06-18 00:25:16 -05:00
parent c867b69e41
commit c34b6734a2
3 changed files with 2 additions and 3 deletions

View File

@ -2,7 +2,6 @@ group = io.papermc.paper
version = 1.17-R0.1-SNAPSHOT version = 1.17-R0.1-SNAPSHOT
mcVersion = 1.17 mcVersion = 1.17
packageVersion = 1_17_R1
org.gradle.parallel=true org.gradle.parallel=true
org.gradle.vfs.watch=false org.gradle.vfs.watch=false

View File

@ -59,6 +59,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ rename { "pom.xml" } + rename { "pom.xml" }
+ } + }
+ +
val packageVersion = "1_17_R1"
relocate("org.bukkit.craftbukkit", "org.bukkit.craftbukkit.v$packageVersion") { relocate("org.bukkit.craftbukkit", "org.bukkit.craftbukkit.v$packageVersion") {
exclude("org.bukkit.craftbukkit.Main*") exclude("org.bukkit.craftbukkit.Main*")
} }

View File

@ -39,8 +39,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ id("com.github.johnrengelman.shadow") + id("com.github.johnrengelman.shadow")
+} +}
+ +
+val packageVersion = providers.gradleProperty("packageVersion").forUseAtConfigurationTime().get()
+
+repositories { +repositories {
+ maven("https://libraries.minecraft.net/") + maven("https://libraries.minecraft.net/")
+} +}
@ -101,6 +99,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+tasks.shadowJar { +tasks.shadowJar {
+ archiveClassifier.set("mojang-mapped") + archiveClassifier.set("mojang-mapped")
+ +
+ val packageVersion = "1_17_R1"
+ relocate("org.bukkit.craftbukkit", "org.bukkit.craftbukkit.v$packageVersion") { + relocate("org.bukkit.craftbukkit", "org.bukkit.craftbukkit.v$packageVersion") {
+ exclude("org.bukkit.craftbukkit.Main*") + exclude("org.bukkit.craftbukkit.Main*")
+ } + }