-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: REGAPIC Multitransport implementation (grpc+rest) (#833)
1) Fully backward compatible with grpc-only GAPIC 2) Strictly speaking not fully backward compatible with rest-only REGAPIC (but is compatible for practical cases). See below for details. 3) Introduces the concept of default transport (is necessary to preserve backward-compabitility). The default behavior assumes grpc transport. Needed to unblock DIREGAPIC LRO. To be reviewed after submission
- Loading branch information
1 parent
fdcfe70
commit 445daf4
Showing
32 changed files
with
1,308 additions
and
464 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
rules_java_gapic/resources/gradle/client_grpcrest.gradle.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
} | ||
} | ||
|
||
apply plugin: 'java' | ||
|
||
description = 'GAPIC library for {{name}}' | ||
group = 'com.google.cloud' | ||
version = (findProperty('version') == 'unspecified') ? '0.0.0-SNAPSHOT' : version | ||
sourceCompatibility = 1.8 | ||
targetCompatibility = 1.8 | ||
|
||
repositories { | ||
mavenCentral() | ||
mavenLocal() | ||
} | ||
|
||
compileJava.options.encoding = 'UTF-8' | ||
javadoc.options.encoding = 'UTF-8' | ||
|
||
dependencies { | ||
compile 'com.google.api:gax:{{version.gax}}' | ||
testCompile 'com.google.api:gax:{{version.gax}}:testlib' | ||
compile 'com.google.api:gax-grpc:{{version.gax_grpc}}' | ||
testCompile 'com.google.api:gax-grpc:{{version.gax_grpc}}:testlib' | ||
compile 'com.google.api:gax-httpjson:{{version.gax_httpjson}}' | ||
testCompile 'com.google.api:gax-httpjson:{{version.gax_httpjson}}:testlib' | ||
testCompile 'io.grpc:grpc-netty-shaded:{{version.io_grpc}}' | ||
testCompile '{{maven.junit_junit}}' | ||
{{extra_deps}} | ||
} | ||
|
||
task smokeTest(type: Test) { | ||
filter { | ||
includeTestsMatching "*SmokeTest" | ||
setFailOnNoMatchingTests false | ||
} | ||
} | ||
|
||
test { | ||
exclude "**/*SmokeTest*" | ||
} | ||
|
||
sourceSets { | ||
main { | ||
java { | ||
srcDir 'src/main/java' | ||
} | ||
} | ||
} | ||
|
||
clean { | ||
delete 'all-jars' | ||
} | ||
|
||
task allJars(type: Copy) { | ||
dependsOn test, jar | ||
into 'all-jars' | ||
// Replace with `from configurations.testRuntime, jar` to include test dependencies | ||
from configurations.runtime, jar | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.