1
0
Fork 0
This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
spigot-ttt/build.gradle.kts

47 lines
1.2 KiB
Kotlin

import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
java
kotlin("jvm") version "1.3.71"
id("com.github.johnrengelman.shadow") version("5.2.0")
}
group = "de.moritz-ruth.spigot-ttt"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
jcenter()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://oss.sonatype.org/content/repositories/central")
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation(kotlin("reflect"))
implementation("commons-codec:commons-codec:1.14")
compileOnly(files("./libs/CorpseReborn.jar"))
compileOnly(files("./libs/ActionBarAPI.jar"))
compileOnly(files("./libs/ProtocolLib.jar"))
compileOnly("org.spigotmc", "spigot-api", "1.14.4-R0.1-SNAPSHOT")
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<ShadowJar> {
val mcServerPath = System.getenv("MC_SERVER_DIR")
if (mcServerPath != null) {
destinationDirectory.set(file("$mcServerPath/plugins"))
}
archiveFileName.set("TTT.jar")
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
}