• 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-httpjson:{{version.gax_httpjson}}'
12  testImplementation 'com.google.api:gax-httpjson:{{version.gax_httpjson}}:testlib'
13  testImplementation '{{maven.junit_junit}}'
14
15  // TODO: remove when dropping Java 8 support.
16  // https://github.com/googleapis/gapic-generator-java/issues/888
17  implementation '{{maven.javax_annotation_javax_annotation_api}}'
18
19  {{extra_deps}}
20}
21
22task smokeTest(type: Test) {
23  filter {
24    includeTestsMatching "*SmokeTest"
25    setFailOnNoMatchingTests false
26  }
27}
28
29test {
30  exclude "**/*SmokeTest*"
31}
32
33clean {
34  delete 'all-jars'
35}
36
37task allJars(type: Copy) {
38  dependsOn test, jar
39  into 'all-jars'
40  // Replace with `from configurations.testRuntimeClasspath, jar` to include test dependencies
41  from configurations.runtimeClasspath, jar
42}
43