-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
63 lines (50 loc) · 1.55 KB
/
build.gradle.kts
File metadata and controls
63 lines (50 loc) · 1.55 KB
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
application
kotlin("jvm") version "1.4.30"
id("com.github.ben-manes.versions") version "0.38.0"
}
repositories {
mavenCentral()
jcenter()
google()
}
group = "io.nekohasekai"
version = "1.0-SNAPSHOT"
application {
applicationName = project.name
mainClass.set("io.nekohasekai.group.TdGroupBot")
}
tasks.withType<Jar> {
manifest {
attributes["Main-Class"] = application.mainClass.get()
}
}
distributions {
main {
distributionBaseName.set("main")
contents.rename {
if (it == project.name ||
it.startsWith(project.name) && it.endsWith("bat")
) it.replace(project.name, "main") else it
}
}
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "11"
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3")
val vKtLib = "1.0-SNAPSHOT"
implementation("io.nekohasekai.ktlib:ktlib-td-cli:$vKtLib")
implementation("io.nekohasekai.ktlib:ktlib-db:$vKtLib")
implementation("io.nekohasekai.ktlib:ktlib-nsfw:$vKtLib")
implementation("io.nekohasekai.ktlib:ktlib-opencc:$vKtLib")
implementation("org.sejda.imageio:webp-imageio:0.1.6")
implementation("com.google.zxing:javase:3.4.1")
implementation("com.squareup.retrofit2:retrofit:2.9.0")
implementation("com.google.code.gson:gson:2.8.6")
implementation("com.hankcs:hanlp:portable-1.8.1")
implementation("org.slf4j:slf4j-nop:2.0.0-alpha1")
}