Switch to Kotlin and disable projectiles

This commit is contained in:
2025-04-06 21:08:26 -07:00
parent 81bf02e188
commit 9f7fdb8ee7
10 changed files with 97 additions and 81 deletions

45
build.gradle.kts Normal file
View File

@@ -0,0 +1,45 @@
plugins {
kotlin("jvm") version "2.1.20"
id("com.github.johnrengelman.shadow") version "8.1.1"
id("xyz.jpenilla.run-paper") version "2.3.1"
}
group = "xyz.lncvrt"
version = "1.0.0"
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/") {
name = "papermc-repo"
}
maven("https://oss.sonatype.org/content/groups/public/") {
name = "sonatype"
}
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
}
val targetJavaVersion = 21
kotlin {
jvmToolchain(targetJavaVersion)
}
tasks.build {
dependsOn("shadowJar")
}
tasks.processResources {
val props = mapOf("version" to version)
inputs.properties(props)
filteringCharset = "UTF-8"
filesMatching("plugin.yml") {
expand(props)
}
}
tasks.runServer {
minecraftVersion("1.21")
}