-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.gradle.kts
60 lines (55 loc) · 1.64 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
plugins {
kotlin("jvm") version "1.3.72"
id("com.github.johnrengelman.shadow") version "5.2.0"
}
group = properties["pluginGroup"]!!
version = properties["pluginVersion"]!!
repositories {
mavenCentral()
maven(url = "https://papermc.io/repo/repository/maven-public/") //paper
maven(url = "https://repo.dmulloy2.net/nexus/repository/public/") //protocollib
maven(url = "https://jitpack.io/") //tap, psychic
maven(url = "https://maven.enginehub.org/repo/") //worldedit
}
dependencies {
compileOnly(kotlin("stdlib-jdk8")) //kotlin
compileOnly("junit:junit:4.12") //junit
compileOnly("com.destroystokyo.paper:paper-api:1.16.1-R0.1-SNAPSHOT") //paper
compileOnly("com.comphenix.protocol:ProtocolLib:4.6.0-SNAPSHOT") //protocollib
compileOnly("com.github.noonmaru:tap:2.8.8") //tap
compileOnly("com.sk89q.worldedit:worldedit-bukkit:7.1.0") //worldedit
implementation("com.github.noonmaru:kommand:0.1.9")
}
tasks {
compileJava {
options.encoding = "UTF-8"
}
javadoc {
options.encoding = "UTF-8"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
processResources {
filesMatching("**/*.yml") {
expand(project.properties)
}
}
shadowJar {
archiveClassifier.set("dist")
}
create<Copy>("distJar") {
from(shadowJar)
into("W:\\Servers\\parkour-maker\\plugins")
}
}
if (!hasProperty("debug")) {
tasks {
shadowJar {
relocate("com.github.noonmaru.kommand", "com.github.noonmaru.parkourmaker.shaded")
}
}
}