This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
85 lines (69 loc) · 2 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("application")
kotlin("jvm") version "1.5.10"
// Shadow jars
id("com.github.johnrengelman.shadow") version "7.0.0"
}
application.mainClass.set("dev.giuliopime.helpdesk.LauncherKt")
group = "dev.giuliopime.helpdesk"
version = "2.0"
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_15
targetCompatibility = JavaVersion.VERSION_15
}
repositories {
mavenCentral()
maven {
name = "m2-dv8tion"
url = uri("https://m2.dv8tion.net/releases")
}
maven("https://jitpack.io/")
}
val ktorVersion = "1.5.4"
dependencies {
// JDA
implementation("net.dv8tion:JDA:4.3.0_277") {
exclude(module = "opus-java")
}
// JDA Utilities for Kotlin
implementation("com.github.minndevelopment:jda-ktx:1a45395")
// JDA Webhook
implementation("club.minnced:discord-webhooks:0.5.6")
// InfluxDB
implementation("com.influxdb:influxdb-client-java:2.0.0")
// Redis
implementation("redis.clients:jedis:3.5.2")
// MongoDB
implementation("org.litote.kmongo:kmongo:4.2.4")
// .env files
implementation("io.github.cdimascio:dotenv-kotlin:6.2.2")
// KTor
implementation("io.ktor:ktor-client-core:$ktorVersion")
implementation("io.ktor:ktor-client-cio:$ktorVersion")
implementation("io.ktor:ktor-client-jackson:$ktorVersion")
// Logger
implementation("io.github.microutils:kotlin-logging-jvm:2.0.6")
implementation("org.slf4j:slf4j-api:1.7.28")
implementation("ch.qos.logback:logback-classic:1.2.3")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.5.10")
implementation(kotlin("stdlib-jdk8"))
}
tasks {
withType(JavaCompile::class) {
options.encoding = "UTF-8"
}
withType(KotlinCompile::class) {
kotlinOptions {
jvmTarget = "15"
}
}
shadowJar {
archiveFileName.set("helpdesk.jar")
}
}
tasks {
build {
dependsOn(shadowJar)
}
}