DArena/build.gradle.kts

44 lines
965 B
Kotlin

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")
compileOnly("com.destroystokyo.paper:paper:1.16.5-R0.1-SNAPSHOT")
compileOnly(kotlin("stdlib-jdk8"))
}
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"
}