Skip to content

Commit 2ee9944

Browse files
committed
build: append minecraft version to output jar filenames
1 parent 74a2c5e commit 2ee9944

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ tasks.register("collectJars", Copy::class) {
3535

3636
into(layout.buildDirectory.dir("libs"))
3737

38-
rename { "netutils-${it}" }
38+
val mcVer = rootProject.property("minecraft_version")
39+
40+
rename {
41+
val nameWithoutExt = it.removeSuffix(".jar")
42+
"netutils-${nameWithoutExt}+${mcVer}.jar"
43+
}
3944

4045
doLast {
4146
println("Universal compilation complete. Jars collected in: ${layout.buildDirectory.dir("libs").get()}")

0 commit comments

Comments
 (0)