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