This repository has been archived by the owner on Sep 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
64 lines (57 loc) · 1.73 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
import org.jetbrains.kotlin.com.intellij.openapi.vfs.StandardFileSystems.jar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.gradle.dsl.Coroutines
plugins {
java
kotlin("jvm") version "1.2.60"
application
}
group = "maxdistructo.discord.bots"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
jcenter()
maven("https://jitpack.io")
}
dependencies {
compile ("com.mashape.unirest","unirest-java","1.4.9")
implementation ("com.github.MaxDistructo","mdCore-Discord4J", "2.2.1")
compile ("com.discord4j","Discord4J","2.10.1")
compile ("com.fasterxml.jackson.core", "jackson-databind", "2.9.4")
compile ("com.sedmelluq","lavaplayer", "1.2.45")
compile ("org.jetbrains.kotlin","kotlin-stdlib-jdk8","1.2.51")
compile ("org.jetbrains.kotlinx","kotlinx-coroutines-core","0.22.5")
compile("ch.qos.logback", "logback-classic", "1.2.3")
testCompile ("org.jetbrains.kotlin", "kotlin-test", "1.2.51")
compile(kotlin("stdlib-jdk8"))
testCompile("junit", "junit", "4.12")
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
application {
mainClassName = "maxdistructo.discord.bots.droidbot.BaseBot"
}
val fatJar = task("fatJar", type = Jar::class) {
baseName = "${project.name}-fat"
manifest {
attributes["Main-Class"] = "maxdistructo.discord.bots.droidbot.BaseBot"
}
from(
configurations.runtime.map {
if (it.isDirectory) it else zipTree(it)
}
)
with(tasks["jar"] as CopySpec)
}
tasks {
"build" {
dependsOn(fatJar)
}
}
kotlin {
experimental.coroutines = Coroutines.ENABLE
}