This repository has been archived by the owner on Nov 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
61 lines (53 loc) · 1.53 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("application")
kotlin("jvm") version "1.3.50"
id("com.github.johnrengelman.shadow") version "4.0.4"
}
application {
mainClassName = "com.github.ghostbear.kotlinanilistbot.ApplicationKt"
}
group = "com.github.ghostbear"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
jcenter()
maven("https://jitpack.io")
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("net.dv8tion:JDA:4.0.0_67") {
exclude(module = "opus-java")
}
implementation("com.github.kittinunf.fuel:fuel:1.3.1")
implementation("com.github.kittinunf.fuel:fuel-jackson:2.2.0")
implementation("com.fasterxml.jackson.core:jackson-annotations:2.9.9")
implementation("com.fasterxml.jackson.core:jackson-core:2.9.9")
implementation("com.fasterxml.jackson.core:jackson-databind:2.9.9")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.9.9")
implementation("com.taskworld.kraph:kraph:0.4.1")
implementation("org.jsoup:jsoup:1.12.1")
}
tasks {
named<ShadowJar>("shadowJar") {
archiveBaseName.set("shadow")
mergeServiceFiles()
manifest {
attributes(mapOf("Main-Class" to application.mainClassName))
}
}
}
tasks {
build {
dependsOn(shadowJar)
}
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "1.8"
}
}