-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
executable file
·64 lines (53 loc) · 1.83 KB
/
build.gradle
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
plugins {
id "org.jetbrains.kotlin.jvm" version "1.2.50"
id "org.jetbrains.kotlin.kapt" version "1.2.50"
id "com.github.johnrengelman.shadow" version "2.0.4"
}
group "de.randombyte"
version "1.4.0"
repositories {
jcenter()
maven { url "https://repo.spongepowered.org/maven/" }
// the repo seems to be offline, instead use a locally compiled build
// maven { url "http://repo.bstats.org/content/repositories/releases" }
flatDir { dirs "libs" }
maven { url "https://jitpack.io" }
}
configurations {
compile.extendsFrom shadow
compile.extendsFrom kapt
}
def kotlinVersion = "1.2.50"
dependencies {
shadow("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion")
shadow("org.jetbrains.kotlin:kotlin-compiler-embeddable:$kotlinVersion")
shadow("org.jetbrains.kotlin:kotlin-script-util:$kotlinVersion") { transitive = false}
shadow("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
shadow("io.github.lukehutch:fast-classpath-scanner:2.9.5")
kapt "org.spongepowered:spongeapi:7.1.0"
compile "com.github.randombyte-developer:PlaceholderAPI:v4.5.1"
compile "com.github.randombyte-developer:byte-items:v2.2.6"
shadow name: "bstats-sponge-1.2"
}
jar.enabled = false
shadowJar {
configurations = [project.configurations.shadow]
def packages = [
"io.github.lukehutch.fastclasspathscanner",
"javaslang",
"net.jpountz", "net.rubygrapefruit",
"one.util",
"org.bstats", "org.intellij", "org.iq80",
"org.jetbrains.ide", "org.jetbrains.org.objectweb.asm"
]
packages.forEach {
relocate it, "de.randombyte.ktskript.shaded.$it"
}
classifier = null // Remove "-all" suffix from output file name
}
build.dependsOn shadowJar
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}