-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
45 lines (39 loc) · 1.04 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
plugins {
kotlin("jvm") version "1.9.23"
id("com.google.protobuf") version "0.9.4"
}
group = "com.vegadados.payloadbinext"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
google()
}
dependencies {
testImplementation(kotlin("test"))
implementation("com.google.protobuf:protobuf-java:4.26.1")
implementation("com.google.protobuf:protobuf-java-util:4.26.1")
implementation("org.tukaani:xz:1.9")
implementation("org.apache.commons:commons-compress:1.26.1")
implementation("commons-io:commons-io:2.16.0")
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(17)
}
protobuf {
protoc {
// The artifact spec for the Protobuf Compiler
artifact = "com.google.protobuf:protoc:4.26.1"
}
}
tasks.jar {
manifest.attributes["Main-Class"] = "com.vegadados.payloadbinext.MainKt"
val dependencies = configurations
.runtimeClasspath
.get()
.map(::zipTree) // OR .map { zipTree(it) }
from(dependencies)
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}