mirror of https://github.com/grpc/grpc-java.git
69 lines
1.6 KiB
Groovy
69 lines
1.6 KiB
Groovy
plugins {
|
|
id "application"
|
|
id "java"
|
|
|
|
id "com.google.protobuf"
|
|
id 'com.google.cloud.tools.jib'
|
|
id "ru.vyarus.animalsniffer"
|
|
}
|
|
|
|
description = "gRPC: Istio Interop testing"
|
|
|
|
dependencies {
|
|
implementation project(':grpc-core'),
|
|
project(':grpc-netty'),
|
|
project(':grpc-protobuf'),
|
|
project(':grpc-services'),
|
|
project(':grpc-stub'),
|
|
project(':grpc-testing'),
|
|
project(':grpc-xds')
|
|
|
|
compileOnly libraries.javax.annotation
|
|
|
|
runtimeOnly libraries.netty.tcnative,
|
|
libraries.netty.tcnative.classes
|
|
testImplementation testFixtures(project(':grpc-api')),
|
|
testFixtures(project(':grpc-core')),
|
|
libraries.mockito.core,
|
|
libraries.junit,
|
|
libraries.truth
|
|
|
|
signature (libraries.signature.java) {
|
|
artifact {
|
|
extension = "signature"
|
|
}
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
proto {
|
|
srcDir 'third_party/istio/src/main/proto'
|
|
}
|
|
}
|
|
}
|
|
|
|
configureProtoCompilation()
|
|
|
|
import net.ltgt.gradle.errorprone.CheckSeverity
|
|
|
|
tasks.named("compileJava").configure {
|
|
// This isn't a library; it can use beta APIs
|
|
options.errorprone.check("BetaApi", CheckSeverity.OFF)
|
|
}
|
|
|
|
|
|
// For releasing to Docker Hub
|
|
jib {
|
|
from.image = "gcr.io/distroless/java17-debian12"
|
|
container {
|
|
ports = ['50051']
|
|
mainClass="io.grpc.testing.istio.EchoTestServer"
|
|
}
|
|
outputPaths {
|
|
tar = 'build/istio-echo-server.tar'
|
|
digest = 'build/istio-echo-server.digest'
|
|
imageId = 'build/istio-echo-server.id'
|
|
}
|
|
}
|