Files
booky a7ce407d73 1.21.5 support (#16)
* Update gradle wrapper to v8.13

* Bump gradle plugins

* Mark 1.21.5 as supported

* Replace deprecated gradle exec feature

* Refactor reobfuscated jar handling
2025-03-27 23:38:25 +01:00

31 lines
808 B
Kotlin

import io.papermc.paperweight.userdev.ReobfArtifactConfiguration
plugins {
id("io.papermc.paperweight.userdev")
}
dependencies {
api(project(":platform-common"))
paperweight.paperDevBundle("1.20.6-R0.1-SNAPSHOT")
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
// hack to allow depending on this platform in java 17 projects
configurations.runtimeElements.configure {
attributes.attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 17)
}
paperweight {
reobfArtifactConfiguration = ReobfArtifactConfiguration.MOJANG_PRODUCTION
}
tasks.reobfJar {
// hacky workaround to make the shadow plugin shadow our mojang-mapped jar
outputJar.set(tasks.jar.map { it.outputs.files.singleFile }.get())
enabled = false
}