ProxyServerHelper/build.gradle.kts

45 lines
1.0 KiB
Plaintext

plugins {
kotlin("jvm") version "2.0.20-Beta1"
kotlin("kapt") version "2.0.20-Beta1"
id("com.github.johnrengelman.shadow") version "8.1.1"
}
group = "io.github.thehrz"
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("com.velocitypowered:velocity-api:3.4.0-SNAPSHOT")
kapt("com.velocitypowered:velocity-api:3.4.0-SNAPSHOT")
implementation("com.moandjiezana.toml:toml4j:0.7.2")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("net.kyori:adventure-api:4.18.0")
}
val targetJavaVersion = 17
kotlin {
jvmToolchain(targetJavaVersion)
}
tasks.build {
dependsOn("shadowJar")
}
tasks.processResources {
val props = mapOf("version" to version)
inputs.properties(props)
filteringCharset = "UTF-8"
filesMatching("velocity-plugin.json") {
expand(props)
}
}