• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1description = 'GAPIC library for {{name}}'
2group = 'com.google.cloud'
3version = (version == 'unspecified') ? '0.0.0-SNAPSHOT' : version
4
5compileJava.options.encoding = 'UTF-8'
6javadoc.options.encoding = 'UTF-8'
7
8dependencies {
9  api 'com.google.api:gax:{{version.gax}}'
10  testImplementation 'com.google.api:gax:{{version.gax}}:testlib'
11  api 'com.google.api:gax-grpc:{{version.gax_grpc}}'
12  testImplementation 'com.google.api:gax-grpc:{{version.gax_grpc}}:testlib'
13  api 'io.grpc:grpc-protobuf:{{version.io_grpc}}'
14  testImplementation 'io.grpc:grpc-stub:{{version.io_grpc}}'
15  testImplementation 'io.grpc:grpc-netty-shaded:{{version.io_grpc}}'
16  testImplementation '{{maven.junit_junit}}'
17
18  // TODO: remove when dropping Java 8 support.
19  // https://github.com/googleapis/gapic-generator-java/issues/888
20  implementation '{{maven.javax_annotation_javax_annotation_api}}'
21
22  {{extra_deps}}
23}
24
25task smokeTest(type: Test) {
26  filter {
27    includeTestsMatching "*SmokeTest"
28    setFailOnNoMatchingTests false
29  }
30}
31
32test {
33  exclude "**/*SmokeTest*"
34}
35
36clean {
37  delete 'all-jars'
38}
39
40task allJars(type: Copy) {
41  dependsOn test, jar
42  into 'all-jars'
43  // Replace with `from configurations.testRuntimeClasspath, jar` to include test dependencies
44  from configurations.runtimeClasspath, jar
45}
46