-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
46 lines (38 loc) · 1.01 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("java")
application
alias(libs.plugins.shadow)
}
group = "io.github.dovehometeam"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation(libs.qqbot.sdk) {
exclude(group = "ch.qos.logback")
exclude(group = "com.squareup.okio")
}
implementation(libs.logback.core)
implementation(libs.logback.classic)
implementation(libs.okio)
for (s in listOf("compileOnly", "annotationProcessor")) {
add(s, libs.lombok)
}
implementation(libs.gson)
}
tasks {
application {
mainClass.set("io.github.dovehometeam.bot.Main")
val r = file("run")
if (!r.exists()) {
r.mkdirs()
}
getByName<JavaExec>("run").workingDir(r)
// applicationDefaultJvmArgs = listOf("-Djline.terminal=jline.UnsupportedTerminal")
}
withType<ShadowJar> {
archiveFileName.set("nyc-test-${version}.jar")
}
}