CatgirlIntelligenceAgency/code/api/index-api/build.gradle

72 lines
1.7 KiB
Groovy
Raw Normal View History

2023-03-04 13:19:01 +01:00
plugins {
id 'java'
id "com.google.protobuf" version "0.9.4"
2023-03-04 13:19:01 +01:00
id 'jvm-test-suite'
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
2023-03-04 13:19:01 +01: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')
implementation project(':code:libraries:message-queue')
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
implementation libs.fastutil
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
}
protobuf {
protoc {
if (osdetector.os == "osx") {
artifact = "com.google.protobuf:protoc:3.0.2:osx-x86_64"
} else {
artifact = "com.google.protobuf:protoc:3.0.2"
}
}
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"
}
}
}
generateProtoTasks {
all().each { task ->
task.plugins {
grpc {}
}
}
}
}