-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
57 lines (47 loc) · 1.07 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
plugins {
id("java")
kotlin("jvm") version "1.8.10"
id("com.google.protobuf") version "0.9.2"
application
}
group = "com.gettej"
version = "0.0.1-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("com.google.protobuf:protobuf-kotlin:3.22.2")
implementation("io.grpc:grpc-stub:1.53.0")
implementation("io.grpc:grpc-protobuf:1.53.0")
implementation("org.jetbrains.kotlinx:kotlinx-cli:0.3.5")
runtimeOnly("io.github.microutils:kotlin-logging-jvm:3.0.5")
testImplementation(kotlin("test"))
}
tasks.test {
useJUnitPlatform()
}
tasks.jar {
manifest {
attributes["Main-Class"] = "MainKt"
}
configurations["compileClasspath"].forEach { file: File ->
from(zipTree(file.absoluteFile))
}
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
kotlin {
jvmToolchain(8)
}
application {
mainClass.set("MainKt")
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:3.22.2"
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}