-
Notifications
You must be signed in to change notification settings - Fork 105
/
build.gradle.kts
71 lines (52 loc) · 1.79 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
69
70
71
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.10"
application
}
repositories {
mavenCentral()
maven(url = "https://jitpack.io")
}
dependencies {
val kotlinVersion = "1.6.10"
implementation(kotlin("stdlib-jdk8", kotlinVersion))
implementation(kotlin("reflect", kotlinVersion))
implementation("dev.kord:kord-core:0.8.0-M12")
implementation("org.apache.commons:commons-math3:3.6.1")
implementation("org.litote.kmongo:kmongo:4.5.0")
val logbackVersion = "1.2.11"
implementation("ch.qos.logback:logback-classic:$logbackVersion")
implementation("ch.qos.logback:logback-core:$logbackVersion")
val retrofitVersion = "2.9.0"
implementation("com.squareup.retrofit2:retrofit:$retrofitVersion")
implementation("com.squareup.retrofit2:converter-gson:$retrofitVersion")
implementation("io.insert-koin:koin-core:3.1.5")
implementation("org.reflections:reflections:0.10.2")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "17"
freeCompilerArgs = listOf("-Xopt-in=kotlin.RequiresOptIn")
}
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.withType<Jar> {
archiveFileName.set("bot.jar")
manifest {
attributes["Main-Class"] = "MainKt"
}
exclude("META-INF/*.RSA", "META-INF/*.DSA", "META-INF/*.SF")
duplicatesStrategy = DuplicatesStrategy.INCLUDE
configurations["compileClasspath"].forEach { file: File ->
from(zipTree(file.absoluteFile))
}
configurations["runtimeClasspath"].forEach { file: File ->
from(zipTree(file.absoluteFile))
}
}
application {
mainClass.set("MainKt")
}