2021-10-25 14:54:58 +02:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
|
|
|
plugins {
|
2023-04-08 23:40:13 +02:00
|
|
|
kotlin("jvm") version "1.6.10"
|
2021-10-25 14:54:58 +02:00
|
|
|
id("com.github.johnrengelman.shadow") version "7.1.0"
|
2023-04-08 23:40:13 +02:00
|
|
|
kotlin("plugin.serialization") version "1.6.10"
|
2021-10-25 14:54:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
group = "nl.kallestruik"
|
|
|
|
version = "2.0"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
mavenLocal()
|
2023-04-08 23:40:13 +02:00
|
|
|
jcenter()
|
2021-10-25 14:54:58 +02:00
|
|
|
|
|
|
|
maven("https://papermc.io/repo/repository/maven-public/")
|
|
|
|
maven("https://repo.aikar.co/content/groups/aikar/")
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation("co.aikar:acf-paper:0.5.0-SNAPSHOT")
|
2021-10-26 11:27:06 +02:00
|
|
|
compileOnly("com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT")
|
2023-04-08 23:40:13 +02:00
|
|
|
compileOnly("nl.kallestruik:DLib:1.4.1")
|
2021-10-29 19:36:46 +02:00
|
|
|
compileOnly(kotlin("stdlib-jdk8"))
|
2023-04-08 23:40:13 +02:00
|
|
|
compileOnly("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2")
|
2021-10-25 14:54:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.compileJava {
|
|
|
|
options.compilerArgs.add("-parameters")
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.shadowJar {
|
|
|
|
relocate("co.aikar.commands", "nl.kallestruik.darena.acf")
|
|
|
|
relocate("co.aikar.locales", "nl.kallestruik.darena.locales")
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.build {
|
|
|
|
dependsOn(tasks.shadowJar)
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.processResources {
|
|
|
|
expand("version" to project.version)
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<KotlinCompile>() {
|
|
|
|
kotlinOptions.jvmTarget = "13"
|
2021-10-26 11:27:06 +02:00
|
|
|
}
|