-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
68 lines (53 loc) · 1.68 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
61
62
63
64
65
66
67
68
plugins {
java
kotlin("jvm") version "1.3.61"
kotlin("kapt") version "1.3.61"
id("com.github.johnrengelman.shadow") version "4.0.4"
}
allprojects {
group = "pw.dotdash"
version = "0.5.0"
}
repositories {
mavenCentral()
maven("https://repo.spongepowered.org/maven")
maven("https://jitpack.io")
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation(kotlin("reflect"))
implementation(project(":township-api"))
implementation("com.github.TheFrontier.director:director-core:aab35a1e45")
implementation("com.github.TheFrontier.director:director-sponge:aab35a1e45")
runtime(kotlin("stdlib-jdk8"))
runtime(kotlin("reflect"))
runtime(project(":township-api"))
runtime("com.github.TheFrontier.director:director-core:aab35a1e45")
runtime("com.github.TheFrontier.director:director-sponge:aab35a1e45")
compileOnly("org.spongepowered:spongeapi:7.1.0")
kapt("org.spongepowered:spongeapi:7.1.0")
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
}
val shadowJar: com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar by tasks
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
shadowJar {
archiveClassifier.set("dist")
relocate("pw.dotdash.director", "pw.dotdash.township.plugin.lib.director")
relocate("kotlin", "pw.dotdash.township.plugin.lib.kotlin")
relocate("org.jetbrains", "pw.dotdash.township.plugin.lib.jetbrains")
minimize {
exclude(project(":township-api"))
}
}
}
artifacts {
add("archives", shadowJar)
}