mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 08:14:00 +02:00
34 lines
763 B
Kotlin
34 lines
763 B
Kotlin
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
group = rootProject.group
|
|
version = rootProject.version
|
|
|
|
plugins {
|
|
id("io.papermc.paperweight.userdev")
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":nms:nms-common"))
|
|
|
|
// Used for nms
|
|
paperweight.paperDevBundle("1.21.11-pre3-R0.1-SNAPSHOT") //TODO update to 1.21.11-R0.1-SNAPSHOT on release
|
|
}
|
|
|
|
repositories {
|
|
maven("https://repo.papermc.io/repository/maven-public/")
|
|
}
|
|
|
|
// Set target version
|
|
tasks.withType<JavaCompile>().configureEach {
|
|
sourceCompatibility = "21"
|
|
targetCompatibility = "21"
|
|
|
|
options.encoding = "UTF-8"
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
apiVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0)
|
|
jvmTarget.set(JvmTarget.JVM_21)
|
|
}
|
|
}
|