Files
bookyandpianoman911 8d4f3d1ef0 1.21.6 support (#19)
* Update publishing repository

* Add 1.21.6 platform module

* Make 1.21.6 module work with 1.21.6

* Added 1.21.7 support

---------

Co-authored-by: pianoman911 <kontakt@finndohrmann.de>
2025-06-27 22:12:18 +02: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.21.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
}