mirror of https://github.com/usbharu/Hideout.git
54 lines
1.3 KiB
Plaintext
54 lines
1.3 KiB
Plaintext
plugins {
|
|
kotlin("jvm")
|
|
id("com.google.protobuf") version "0.9.4"
|
|
}
|
|
|
|
group = "dev.usbharu"
|
|
version = "0.0.1"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation("org.jetbrains.kotlin:kotlin-test")
|
|
implementation("io.grpc:grpc-kotlin-stub:1.4.1")
|
|
implementation("io.grpc:grpc-protobuf:1.63.0")
|
|
implementation("com.google.protobuf:protobuf-kotlin:4.26.1")
|
|
implementation("io.grpc:grpc-netty:1.63.0")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0")
|
|
implementation(project(":owl-common"))
|
|
protobuf(files(project(":owl-broker").dependencyProject.projectDir.toString() + "/src/main/proto"))
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
}
|
|
kotlin {
|
|
jvmToolchain(17)
|
|
}
|
|
|
|
protobuf {
|
|
protoc {
|
|
artifact = "com.google.protobuf:protoc:4.26.1"
|
|
}
|
|
plugins {
|
|
create("grpc") {
|
|
artifact = "io.grpc:protoc-gen-grpc-java:1.63.0"
|
|
}
|
|
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")
|
|
}
|
|
}
|
|
}
|
|
} |