DTweaks/build.gradle.kts

68 lines
1.7 KiB
Plaintext
Raw Normal View History

2022-01-30 18:09:54 +01:00
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
2023-06-28 21:23:50 +02:00
kotlin("jvm") version "1.8.22"
id("com.github.johnrengelman.shadow") version "8.1.1"
id("xyz.jpenilla.run-paper") version "2.1.0" // Adds runServer and runMojangMappedServer tasks for testing
id("io.papermc.paperweight.userdev") version "1.5.5"
2022-01-30 18:09:54 +01:00
}
group = "nl.kallestruik"
2023-06-28 21:23:50 +02:00
version = "1.1"
2022-01-30 18:09:54 +01:00
repositories {
mavenCentral()
mavenLocal()
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://repo.aikar.co/content/groups/aikar/")
maven("https://repo.dmulloy2.net/repository/public/")
2023-06-28 21:23:50 +02:00
maven("https://git.kallestruik.nl/api/packages/mc/maven/")
2022-01-30 18:09:54 +01:00
}
dependencies {
2023-06-28 21:23:50 +02:00
paperweight.paperDevBundle("1.20-R0.1-SNAPSHOT")
2023-04-08 23:51:19 +02:00
2023-06-28 21:23:50 +02:00
implementation("co.aikar:acf-paper:0.5.1-SNAPSHOT")
compileOnly("com.comphenix.protocol:ProtocolLib:5.0.0")
2022-01-30 18:09:54 +01:00
2023-06-28 21:23:50 +02:00
compileOnly("nl.kallestruik:DLib:1.5.1")
2022-01-30 18:09:54 +01:00
testImplementation(kotlin("test-junit5"))
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.6.0")
}
tasks.build {
dependsOn(tasks.shadowJar)
}
tasks {
assemble {
dependsOn(reobfJar)
}
test {
useJUnitPlatform()
}
shadowJar {
relocate("co.aikar.commands", "nl.kallestruik.dtweaks.acf")
relocate("co.aikar.locales", "nl.kallestruik.dtweaks.locales")
}
compileJava {
options.compilerArgs.add("-parameters")
}
compileKotlin {
kotlinOptions.javaParameters = true
}
withType<KotlinCompile> {
2023-06-28 21:23:50 +02:00
kotlinOptions.jvmTarget = "17"
}
2022-01-30 18:09:54 +01:00
processResources {
expand("version" to project.version)
}
2022-01-30 18:09:54 +01:00
}