This repository has been archived by the owner on Sep 10, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
75 lines (60 loc) · 1.74 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.9.0"
java
application
kotlin("plugin.serialization") version "1.9.0"
}
group = "app.lacabra"
version = "0.0.1"
description = "Un simple bot para reportar problemas con la versión preliminar de LA CABRA"
repositories {
mavenCentral()
maven("https://m2.dv8tion.net/releases")
maven("https://jitpack.io")
}
dependencies {
implementation("ch.qos.logback:logback-classic:1.4.11")
implementation("io.github.classgraph:classgraph:4.8.162")
implementation("com.charleskorn.kaml:kaml:0.55.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
implementation("net.dv8tion:JDA:5.0.0-beta.13")
implementation("com.github.minndevelopment:jda-ktx:0.10.0-beta.1")
implementation("com.zaxxer:HikariCP:5.0.1")
implementation("org.postgresql:postgresql:42.6.0")
implementation("org.jetbrains.exposed:exposed-core:0.42.0")
implementation("org.jetbrains.exposed:exposed-jdbc:0.42.0")
}
kotlin {
jvmToolchain(18)
}
java {
sourceCompatibility = JavaVersion.VERSION_18
targetCompatibility = JavaVersion.VERSION_18
}
application {
mainClass.set("app.lacabra.Main")
}
tasks {
build {
doLast {
println("Application build completed successfully!")
}
}
withType(KotlinCompile::class.java) {
kotlinOptions.jvmTarget = "18"
}
}
configurations {
compileOnly {
extendsFrom(annotationProcessor.get())
}
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "18"
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.compilerArgs.add("-Xlint:unchecked")
options.compilerArgs.add("-Xlint:deprecation")
}