unos/utils/build.gradle.kts

38 lines
718 B
Plaintext
Raw Permalink Normal View History

2024-03-10 03:47:51 +00:00
plugins {
kotlin("jvm") version "1.9.22"
id("com.google.protobuf") version "0.9.4"
}
group = "dev.usbharu.unos"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
testImplementation("org.jetbrains.kotlin:kotlin-test")
compileOnly("io.grpc:grpc-protobuf:1.61.1")
compileOnly("com.google.protobuf:protobuf-kotlin:3.25.3")
protobuf(files("../unos-proto/src/main/proto"))
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(17)
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:3.25.3"
}
generateProtoTasks {
all().forEach {
it.builtins {
create("kotlin")
}
}
}
}