2021-10-25 14:54:58 +02:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
kotlin("jvm") version "1.5.10"
|
|
|
|
id("com.github.johnrengelman.shadow") version "7.1.0"
|
|
|
|
}
|
|
|
|
|
|
|
|
group = "nl.kallestruik"
|
|
|
|
version = "2.0"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
mavenLocal()
|
|
|
|
|
|
|
|
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")
|
|
|
|
compileOnly(kotlin("stdlib"))
|
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
|
|
|
}
|