unos/illust-crud/build.gradle.kts

53 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2024-03-07 11:12:52 +00:00
plugins {
2024-03-10 03:47:51 +00:00
kotlin("jvm") version "1.9.22"
id("com.google.protobuf") version "0.9.4"
2024-03-07 11:12:52 +00:00
}
group = "dev.usbharu"
version = "0.0.1"
repositories {
mavenCentral()
}
dependencies {
implementation("io.grpc:grpc-kotlin-stub:1.4.1")
implementation("io.grpc:grpc-protobuf:1.61.1")
implementation("com.google.protobuf:protobuf-kotlin:3.25.3")
implementation("io.grpc:grpc-netty:1.61.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0")
2024-03-10 03:47:51 +00:00
protobuf(files("../unos-proto/src/main/proto"))
2024-03-07 11:12:52 +00:00
testImplementation("org.jetbrains.kotlin:kotlin-test")
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(11)
}
2024-03-10 03:47:51 +00:00
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:3.25.3"
}
plugins {
create("grpc") {
artifact = "io.grpc:protoc-gen-grpc-java:1.61.1"
}
create("grpckt") {
artifact = "io.grpc:protoc-gen-grpc-kotlin:1.4.1:jdk8@jar"
}
}
generateProtoTasks {
all().forEach {
it.plugins {
create("grpc")
create("grpckt")
}
it.builtins {
create("kotlin")
}
}
}
}