2023-03-04 13:19:01 +01:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
2023-09-23 11:01:43 +02:00
|
|
|
|
2023-10-24 11:09:12 +02:00
|
|
|
id "com.google.protobuf" version "0.9.4"
|
2023-03-04 13:19:01 +01:00
|
|
|
id 'jvm-test-suite'
|
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
toolchain {
|
2023-09-23 11:01:43 +02:00
|
|
|
languageVersion.set(JavaLanguageVersion.of(21))
|
2023-03-04 13:19:01 +01:00
|
|
|
}
|
|
|
|
}
|
2023-10-24 11:09:12 +02:00
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
proto {
|
|
|
|
srcDir 'src/main/protobuf'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-03-04 13:19:01 +01:00
|
|
|
dependencies {
|
2023-03-07 17:14:32 +01:00
|
|
|
implementation project(':code:common:model')
|
|
|
|
implementation project(':code:common:config')
|
|
|
|
implementation project(':code:common:service-discovery')
|
|
|
|
implementation project(':code:common:service-client')
|
2023-08-15 10:53:23 +02:00
|
|
|
implementation project(':code:libraries:message-queue')
|
2023-03-12 10:50:31 +01:00
|
|
|
implementation project(':code:features-index:index-query')
|
2023-03-04 13:19:01 +01:00
|
|
|
|
|
|
|
implementation libs.bundles.slf4j
|
|
|
|
|
|
|
|
implementation libs.prometheus
|
|
|
|
implementation libs.notnull
|
|
|
|
implementation libs.guice
|
|
|
|
implementation libs.rxjava
|
|
|
|
implementation libs.protobuf
|
2023-03-16 21:35:54 +01:00
|
|
|
implementation libs.fastutil
|
2023-10-24 11:09:12 +02:00
|
|
|
implementation libs.javax.annotation
|
|
|
|
implementation libs.bundles.gson
|
|
|
|
implementation libs.bundles.grpc
|
2023-03-04 13:19:01 +01:00
|
|
|
|
|
|
|
testImplementation libs.bundles.slf4j.test
|
|
|
|
testImplementation libs.bundles.junit
|
|
|
|
testImplementation libs.mockito
|
|
|
|
}
|
2023-10-24 11:09:12 +02:00
|
|
|
|
|
|
|
protobuf {
|
|
|
|
protoc {
|
2023-12-16 14:22:11 +01:00
|
|
|
if (osdetector.os == "osx") {
|
|
|
|
artifact = "com.google.protobuf:protoc:3.0.2:osx-x86_64"
|
|
|
|
} else {
|
|
|
|
artifact = "com.google.protobuf:protoc:3.0.2"
|
|
|
|
}
|
2023-10-24 11:09:12 +02:00
|
|
|
}
|
|
|
|
plugins {
|
|
|
|
grpc {
|
2023-12-16 14:24:41 +01:00
|
|
|
if (osdetector.os == "osx") {
|
|
|
|
artifact = "io.grpc:protoc-gen-grpc-java:1.1.2:osx-x86_64"
|
|
|
|
} else {
|
|
|
|
artifact = "io.grpc:protoc-gen-grpc-java:1.1.2"
|
|
|
|
}
|
2023-10-24 11:09:12 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
generateProtoTasks {
|
|
|
|
all().each { task ->
|
|
|
|
task.plugins {
|
|
|
|
grpc {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|