-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
109 lines (93 loc) · 2.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
@file:Suppress("GradlePackageUpdate")
import dev.kordex.gradle.plugins.kordex.DataCollection
plugins {
kotlin("jvm")
kotlin("plugin.serialization")
id("com.google.devtools.ksp")
id("com.github.johnrengelman.shadow")
id("dev.kordex.gradle.kordex")
// id("dev.kordex.gradle.docker") version "1.4.2"
id("dev.reformator.stacktracedecoroutinator")
}
group = "moe.nikky"
version = "1.0-SNAPSHOT"
//docker {
// generateOnBuild = true
// target = file("test_DockerFile")
// commands {
//// add(DockerfileCommand)
// }
//}
kordEx {
bot {
mainClass = "moe.nikky.MainKt"
processDotEnv = true
voice = false
dataCollection = DataCollection.None
}
addDependencies = true
addRepositories = true
// kordVersion.set("latest")
// kordExVersion.set("latest")
// module("extra-phishing")
// module("extra-pluralkit")
}
kotlin {
sourceSets.main {
kotlin.srcDir("build/generated/ksp/main/kotlin")
}
sourceSets.test {
kotlin.srcDir("build/generated/ksp/test/kotlin")
}
}
dependencies {
// implementation("com.kotlindiscord.kord.extensions:kord-extensions:_")
// implementation("com.kotlindiscord.kord.extensions:annotations:_")
// implementation("com.kotlindiscord.kord.extensions:extra-phishing:_")
// implementation("com.kotlindiscord.kord.extensions:extra-pluralkit:_")
// ksp("com.kotlindiscord.kord.extensions:annotation-processor:_")
// implementation("dev.kord:kord-core:_")
implementation("dev.kord.x:emoji:_")
implementation("org.jetbrains.kotlinx:kotlinx-datetime:_")
implementation(KotlinX.serialization.json)
implementation("io.github.xn32:json5k:_")
implementation("io.ktor:ktor-serialization-kotlinx-json:_")
implementation(KotlinX.coroutines.core)
implementation(KotlinX.coroutines.debug)
implementation("br.com.colman:dice-helper:_")
implementation("io.klogging:klogging-jvm:_")
implementation("io.klogging:slf4j-klogging:_")
implementation("io.ktor:ktor-client-logging:_")
implementation("org.slf4j:slf4j-api:_")
}
tasks {
test {
useJUnitPlatform()
}
shadowJar {
archiveBaseName.set("application")
archiveClassifier.set("")
archiveVersion.set("")
}
register("buildImage") {
group = "build"
dependsOn(shadowJar)
doLast {
exec {
commandLine("docker", "build", "-t", "nikkyai/discordbot:dev", "-f", "local.Dockerfile", ".")
}
}
}
// register("pushImage") {
// group = "build"
// dependsOn("buildImage")
// doLast {
// exec {
// commandLine("docker", "push", "nikkyai/discordbot:dev")
// }
// }
// }
}
stacktraceDecoroutinator {
enabled = true
}