51 lines
1.1 KiB
Kotlin
51 lines
1.1 KiB
Kotlin
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.1-SNAPSHOT"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://repo.papermc.io/repository/maven-public/") {
|
|
name = "papermc-repo"
|
|
}
|
|
maven("https://oss.sonatype.org/content/groups/public/") {
|
|
name = "sonatype"
|
|
}
|
|
maven("https://repo.lncvrt.xyz/releases") {
|
|
name = "lncvrtRepositoryReleases"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly("io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT")
|
|
compileOnly("xyz.lncvrt:galaxyapi:1.0.0")
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
|
|
}
|
|
|
|
val targetJavaVersion = 21
|
|
kotlin {
|
|
jvmToolchain(targetJavaVersion)
|
|
}
|
|
|
|
tasks {
|
|
build {
|
|
dependsOn("shadowJar")
|
|
}
|
|
|
|
processResources {
|
|
val props = mapOf("version" to version)
|
|
inputs.properties(props)
|
|
filteringCharset = "UTF-8"
|
|
filesMatching("plugin.yml") {
|
|
expand(props)
|
|
}
|
|
}
|
|
|
|
runServer {
|
|
minecraftVersion("1.21")
|
|
}
|
|
} |