-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
74 lines (59 loc) · 1.91 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.9.10"
id("io.quarkus")
id("org.jetbrains.kotlin.plugin.allopen") version "1.9.10"
}
repositories {
mavenCentral()
mavenLocal()
}
val quarkusPlatformGroupId: String by project
val quarkusPlatformArtifactId: String by project
val quarkusPlatformVersion: String by project
val ktorVersion: String by project
val kordVersion: String by project
dependencies {
// Kotlin++!
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0")
// Quarkus
implementation(
enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}")
)
implementation("io.quarkus:quarkus-kotlin")
implementation("io.quarkus:quarkus-scheduler")
implementation("io.quarkus:quarkus-arc")
implementation("io.quarkus:quarkus-config-yaml")
// Discord
implementation("dev.kord:kord-core:$kordVersion")
implementation("dev.kord.x:emoji:0.5.0")
// HTTP
implementation("io.ktor:ktor-client-core:$ktorVersion")
implementation("io.ktor:ktor-client-cio:$ktorVersion")
// Html Parser
implementation("org.jsoup:jsoup:1.16.1")
// MongoDB
implementation("org.litote.kmongo:kmongo-coroutine:4.5.0")
// Tests
testImplementation("io.quarkus:quarkus-junit5")
testImplementation("io.mockk:mockk:1.12.3")
testImplementation("io.kotest:kotest-assertions-core:5.1.0")
}
group = "me.l3n.bot.discord.pensador"
version = "0.0.1"
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.compilerArgs.add("-parameters")
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "17"
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "17"
}