43 lines
875 B
Kotlin
43 lines
875 B
Kotlin
plugins {
|
|
kotlin("jvm") version "2.1.10"
|
|
id("xyz.jpenilla.run-paper") version "3.0.2"
|
|
idea
|
|
}
|
|
|
|
group = "ch.offbeatwit.bestbuds"
|
|
version = "1.0.1"
|
|
|
|
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.11-R0.1-SNAPSHOT")
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
|
|
}
|
|
|
|
tasks {
|
|
runServer {
|
|
minecraftVersion("1.21.11")
|
|
}
|
|
}
|
|
|
|
val targetJavaVersion = 21
|
|
kotlin {
|
|
jvmToolchain(targetJavaVersion)
|
|
}
|
|
|
|
tasks.processResources {
|
|
val props = mapOf("version" to version)
|
|
inputs.properties(props)
|
|
filteringCharset = "UTF-8"
|
|
filesMatching("plugin.yml") {
|
|
expand(props)
|
|
}
|
|
}
|