sanjaypujare | 6271bab | 2022-06-29 14:52:19 -0700 | [diff] [blame] | 1 | plugins { |
| 2 | id "application" |
| 3 | id "java" |
| 4 | |
| 5 | id "com.google.protobuf" |
| 6 | id 'com.google.cloud.tools.jib' |
Eric Anderson | 61f19d7 | 2022-08-10 12:41:57 -0700 | [diff] [blame] | 7 | id "ru.vyarus.animalsniffer" |
sanjaypujare | 6271bab | 2022-06-29 14:52:19 -0700 | [diff] [blame] | 8 | } |
| 9 | |
| 10 | description = "gRPC: Istio Interop testing" |
| 11 | |
| 12 | configurations { |
| 13 | alpnagent |
| 14 | } |
| 15 | |
sanjaypujare | 6271bab | 2022-06-29 14:52:19 -0700 | [diff] [blame] | 16 | dependencies { |
| 17 | implementation project(':grpc-core'), |
| 18 | project(':grpc-netty'), |
| 19 | project(':grpc-protobuf'), |
| 20 | project(':grpc-services'), |
| 21 | project(':grpc-stub'), |
sanjaypujare | e3d5861 | 2022-07-27 14:31:33 +0530 | [diff] [blame] | 22 | project(':grpc-testing'), |
| 23 | project(':grpc-xds') |
sanjaypujare | 6271bab | 2022-06-29 14:52:19 -0700 | [diff] [blame] | 24 | |
| 25 | compileOnly libraries.javax.annotation |
| 26 | |
| 27 | runtimeOnly libraries.netty.tcnative, |
| 28 | libraries.netty.tcnative.classes |
Eric Anderson | 29b8483 | 2023-05-16 12:10:13 -0700 | [diff] [blame] | 29 | testImplementation testFixtures(project(':grpc-context')), |
| 30 | testFixtures(project(':grpc-api')), |
| 31 | testFixtures(project(':grpc-core')), |
sanjaypujare | 6271bab | 2022-06-29 14:52:19 -0700 | [diff] [blame] | 32 | libraries.mockito.core, |
| 33 | libraries.junit, |
| 34 | libraries.truth |
| 35 | alpnagent libraries.jetty.alpn.agent |
Eric Anderson | 61f19d7 | 2022-08-10 12:41:57 -0700 | [diff] [blame] | 36 | |
| 37 | signature libraries.signature.java |
sanjaypujare | 6271bab | 2022-06-29 14:52:19 -0700 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | sourceSets { |
| 41 | main { |
| 42 | proto { |
| 43 | srcDir 'third_party/istio/src/main/proto' |
| 44 | } |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | configureProtoCompilation() |
| 49 | |
| 50 | import net.ltgt.gradle.errorprone.CheckSeverity |
| 51 | |
Eric Anderson | 0ff9f37 | 2022-07-01 15:48:38 -0700 | [diff] [blame] | 52 | tasks.named("compileJava").configure { |
sanjaypujare | 6271bab | 2022-06-29 14:52:19 -0700 | [diff] [blame] | 53 | // This isn't a library; it can use beta APIs |
| 54 | options.errorprone.check("BetaApi", CheckSeverity.OFF) |
| 55 | } |
| 56 | |
| 57 | |
| 58 | // For releasing to Docker Hub |
| 59 | jib { |
| 60 | from.image = "gcr.io/distroless/java:8" |
| 61 | container { |
| 62 | ports = ['50051'] |
| 63 | mainClass="io.grpc.testing.istio.EchoTestServer" |
| 64 | } |
| 65 | outputPaths { |
| 66 | tar = 'build/istio-echo-server.tar' |
| 67 | digest = 'build/istio-echo-server.digest' |
| 68 | imageId = 'build/istio-echo-server.id' |
| 69 | } |
| 70 | } |