mirror of
https://github.com/barkeser2002/MapEngine.git
synced 2026-09-25 01:09:50 +03:00
* Update gradle wrapper to v8.13 * Bump gradle plugins * Mark 1.21.5 as supported * Replace deprecated gradle exec feature * Refactor reobfuscated jar handling
31 lines
808 B
Kotlin
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
|
|
}
|