-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
55 lines (46 loc) · 1.46 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("application")
kotlin("jvm") version "1.7.10"
// KotlinX Serialization
kotlin("plugin.serialization") version "1.7.10"
// .jar with libraries creation
id("com.github.johnrengelman.shadow") version "7.1.2"
}
// Astro domain name reversed (original: https://astro-bot.space)
group = "space.astro-bot"
application.mainClass.set("space.astrobot.LauncherKt")
version = "1.0"
repositories {
mavenCentral()
// Jitpack needed for jda-ktx library
maven("https://jitpack.io/")
}
dependencies {
implementation("net.dv8tion:JDA:5.0.0-beta.3")
implementation("com.github.minndevelopment:jda-ktx:17eb77")
implementation("io.github.cdimascio:dotenv-kotlin:6.3.1")
implementation("io.github.microutils:kotlin-logging-jvm:2.1.23")
implementation("ch.qos.logback:logback-classic:1.4.0")
implementation("org.litote.kmongo:kmongo-serialization:4.7.0")
implementation("com.aventrix.jnanoid:jnanoid:2.0.0")
implementation("org.reflections:reflections:0.10.2")
implementation("redis.clients:jedis:4.3.0-m1")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
tasks {
withType(JavaCompile::class) {
options.encoding = "UTF-8"
}
shadowJar {
archiveFileName.set("astro-devlog.jar")
}
}
tasks {
build {
dependsOn(shadowJar)
}
}