-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
50 lines (40 loc) · 1.03 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
plugins {
id "org.jetbrains.kotlin.jvm" version "1.2.51"
id "org.jetbrains.kotlin.kapt" version "1.2.51"
id "com.github.johnrengelman.shadow" version "2.0.4"
}
group "de.randombyte"
version "1.0.2"
repositories {
jcenter()
maven { url = "http://maven.bluexin.be/repository/snapshots/" }
}
configurations {
compile.extendsFrom shadow
}
dependencies {
shadow "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.51"
shadow("be.bluexin:drpc4k:0.6-SNAPSHOT")
}
shadowJar {
configurations = [project.configurations.shadow]
relocate "kotlin", "de.randombyte.discordrpcmusic.shaded.kotlin"
relocate "be.bluexin.drpc4k.jna", "de.randombyte.discordrpcmusic.shaded.be.bluexin.drpc4k.jna"
classifier = null // Remove '-all' suffix from output file name
}
build.dependsOn shadowJar
jar {
manifest {
attributes "Main-Class": "de.randombyte.discordrpcmusic.MainKt"
}
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
kotlin {
experimental {
coroutines "enable"
}
}