-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
39 lines (33 loc) · 936 Bytes
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.4.32"
id("com.github.johnrengelman.shadow") version "5.2.0"
}
group = "me.patrykanuszczyk"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
// Spigot
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
// Shadow
maven("https://oss.sonatype.org/content/repositories/snapshots/")
// CraftBukkit
flatDir { dir("libs") }
}
dependencies {
compileOnly("org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT")
compileOnly("", "craftbukkit-1.14.4-R0.1-SNAPSHOT")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
}
}
tasks.withType<ShadowJar> {
archiveClassifier.set("")
if(project.version.toString().endsWith("-SNAPSHOT")) {
archiveVersion.set("")
}
minimize()
}