2024-03-04 09:24:57 +00:00
|
|
|
plugins {
|
2024-05-21 13:41:18 +00:00
|
|
|
// alias(libs.plugins.kotlin.jvm)
|
|
|
|
kotlin("jvm")
|
2024-03-04 09:24:57 +00:00
|
|
|
id("com.google.protobuf") version "0.9.4"
|
2024-05-11 17:23:40 +00:00
|
|
|
id("com.google.devtools.ksp") version "1.9.24-1.0.20"
|
2024-03-04 09:24:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
apply {
|
|
|
|
plugin("com.google.devtools.ksp")
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
group = "dev.usbharu"
|
|
|
|
version = "0.0.1"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation("io.grpc:grpc-kotlin-stub:1.4.1")
|
2024-05-16 07:53:40 +00:00
|
|
|
implementation("io.grpc:grpc-protobuf:1.64.0")
|
2024-06-06 15:54:59 +00:00
|
|
|
implementation("com.google.protobuf:protobuf-kotlin:4.27.1")
|
2024-05-16 07:53:40 +00:00
|
|
|
implementation("io.grpc:grpc-netty:1.64.0")
|
2024-05-11 17:26:21 +00:00
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1")
|
2024-05-03 17:16:01 +00:00
|
|
|
implementation(project(":owl-common"))
|
2024-05-06 10:03:29 +00:00
|
|
|
implementation("org.apache.logging.log4j:log4j-slf4j2-impl:2.23.1")
|
2024-05-06 09:33:01 +00:00
|
|
|
implementation(platform("io.insert-koin:koin-bom:3.5.6"))
|
2024-03-04 09:24:57 +00:00
|
|
|
implementation(platform("io.insert-koin:koin-annotations-bom:1.3.1"))
|
|
|
|
implementation("io.insert-koin:koin-core")
|
|
|
|
compileOnly("io.insert-koin:koin-annotations")
|
|
|
|
ksp("io.insert-koin:koin-ksp-compiler:1.3.1")
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
kotlin {
|
|
|
|
jvmToolchain(17)
|
|
|
|
}
|
|
|
|
|
|
|
|
protobuf {
|
|
|
|
protoc {
|
2024-06-06 16:28:43 +00:00
|
|
|
artifact = "com.google.protobuf:protoc:4.27.1"
|
2024-03-04 09:24:57 +00:00
|
|
|
}
|
|
|
|
plugins {
|
|
|
|
create("grpc") {
|
2024-05-16 07:53:40 +00:00
|
|
|
artifact = "io.grpc:protoc-gen-grpc-java:1.64.0"
|
2024-03-04 09:24:57 +00:00
|
|
|
}
|
|
|
|
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")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|