-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
84 lines (75 loc) · 2.42 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import com.google.protobuf.gradle.*
plugins {
kotlin("jvm") version "1.6.21"
application
id("com.google.protobuf") version "0.8.19"
id("com.github.johnrengelman.shadow") version "7.1.2"
}
group = "org.thingy"
version = "2.0"
repositories {
mavenCentral()
maven("https://jitpack.io")
}
dependencies {
testImplementation(kotlin("test"))
implementation("com.github.minndevelopment:jda-ktx:17eb77a")
implementation("net.dv8tion:JDA:5.0.0-beta.3")
implementation("ch.qos.logback:logback-classic:1.4.5")
implementation("io.grpc:grpc-kotlin-stub:1.3.0")
implementation("io.grpc:grpc-protobuf:1.51.0")
implementation("com.google.protobuf:protobuf-kotlin:3.21.9")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("io.grpc:grpc-netty:1.51.0")
implementation("com.beust:klaxon:5.6")
implementation("com.sksamuel.hoplite:hoplite-core:2.6.5")
implementation("com.sksamuel.hoplite:hoplite-yaml:2.6.5")
implementation("com.j256.ormlite:ormlite-core:6.1")
implementation("com.j256.ormlite:ormlite-jdbc:6.1")
implementation("redis.clients:jedis:4.3.2")
implementation("org.xerial:sqlite-jdbc:3.40.0.0")
implementation("org.atteo:evo-inflector:1.3")
implementation("com.google.code.gson:gson:2.10")
implementation("org.apache.commons:commons-lang3:3.12.0")
implementation("org.apache.directory.studio:org.apache.commons.io:2.4")
implementation("com.google.protobuf:protobuf-java-util:3.21.9")
implementation("net.coobird:thumbnailator:0.4.18")
implementation(kotlin("reflect"))
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "18"
}
application {
mainClass.set("MainKt")
}
tasks.named("shadowJar", com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar::class) {
mergeServiceFiles()
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:3.21.5"
}
plugins {
id("grpc") {
artifact = "io.grpc:protoc-gen-grpc-java:1.49.0"
}
id("grpckt") {
artifact = "io.grpc:protoc-gen-grpc-kotlin:1.3.0:jdk8@jar"
}
}
generateProtoTasks {
all().forEach {
it.plugins {
id("grpc")
id("grpckt")
}
it.builtins {
id("kotlin")
}
}
}
}