plugins { id 'java' id "com.google.protobuf" version "0.9.4" id 'jvm-test-suite' } java { toolchain { languageVersion.set(JavaLanguageVersion.of(21)) } } sourceSets { main { proto { srcDir 'src/main/protobuf' } } } dependencies { 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') 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 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 { 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 {} } } } }