-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathclient_rest.gradle.tmpl
42 lines (34 loc) · 1.12 KB
/
client_rest.gradle.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
description = 'GAPIC library for {{name}}'
group = 'com.google.cloud'
version = (version == 'unspecified') ? '0.0.0-SNAPSHOT' : version
compileJava.options.encoding = 'UTF-8'
javadoc.options.encoding = 'UTF-8'
dependencies {
implementation 'com.google.api:gax:{{version.gax}}'
testImplementation 'com.google.api:gax:{{version.gax}}:testlib'
implementation 'com.google.api:gax-httpjson:{{version.gax_httpjson}}'
testImplementation 'com.google.api:gax-httpjson:{{version.gax_httpjson}}:testlib'
testImplementation '{{maven.junit_junit}}'
// TODO: remove when dropping Java 8 support.
// https://github.com/googleapis/gapic-generator-java/issues/888
implementation '{{maven.javax_annotation_javax_annotation_api}}'
{{extra_deps}}
}
task smokeTest(type: Test) {
filter {
includeTestsMatching "*SmokeTest"
setFailOnNoMatchingTests false
}
}
test {
exclude "**/*SmokeTest*"
}
clean {
delete 'all-jars'
}
task allJars(type: Copy) {
dependsOn test, jar
into 'all-jars'
// Replace with `from configurations.testRuntimeClasspath, jar` to include test dependencies
from configurations.runtimeClasspath, jar
}