mirror of https://github.com/usbharu/Hideout.git
51 lines
1.1 KiB
Plaintext
51 lines
1.1 KiB
Plaintext
plugins {
|
|
alias(libs.plugins.kotlin.jvm)
|
|
alias(libs.plugins.protobuf.plugin)
|
|
}
|
|
|
|
group = "dev.usbharu"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation(libs.kotlin.junit)
|
|
api(project(":owl-producer:owl-producer-api"))
|
|
implementation(libs.bundles.grpc.kotlin)
|
|
implementation(libs.coroutines.core)
|
|
implementation(project(":owl-common"))
|
|
protobuf(files(project(":owl-broker").dependencyProject.projectDir.toString() + "/src/main/proto"))
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
}
|
|
kotlin {
|
|
jvmToolchain(21)
|
|
}
|
|
|
|
protobuf {
|
|
protoc {
|
|
artifact = libs.protoc.asProvider().get().toString()
|
|
}
|
|
plugins {
|
|
create("grpc") {
|
|
artifact = libs.protoc.gen.grpc.java.get().toString()
|
|
}
|
|
create("grpckt") {
|
|
artifact = libs.protoc.gen.grpc.kotlin.get().toString() + ":jdk8@jar"
|
|
}
|
|
}
|
|
generateProtoTasks {
|
|
all().forEach {
|
|
it.plugins {
|
|
create("grpc")
|
|
create("grpckt")
|
|
}
|
|
it.builtins {
|
|
create("kotlin")
|
|
}
|
|
}
|
|
}
|
|
} |