Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: DIREGAPIC initial implementation (#746)
ntegration tests (compute_small) are not present in this commit, as they depend on #743 and #744. Also, as a prerequisite, at least a basic implementation of DIREGAPIC must be merged in gapic-generator-java, to integrate it with [googleapis-discovery](https://github.com/googleapis/googleapis-discovery) first (since integration test infra depends on the actual googleapis/googleapis-discovery targets). Please check vam-google@8983e23 to see how it would look like with compute integration tests not excluded. `compliance.proto` is used as a basis for the REST composer tests. It was copied as is from [showcase/compliance.proto](https://github.com/googleapis/gapic-showcase/blob/master/schema/google/showcase/v1beta1/compliance.proto). Changes in `WORKSPACE` and `repositories.bzl` are necessary to make this repo work with gax-java `1.63.0` and above (`gax-java` vs `gapic-generator-java` java dependencies imports precedence). The other dependencies changes are either to bring deps in sync with the actual ones in googleapis, or to fix a specific import precedence issue. I also added (in a form of bazel rules) a proto descriptor dumper and a runner from the dumped file (for debugging purposes). Not technically required here (but was very helpful for debugging purposes, so hopefully we can preserve it).
- Loading branch information
1 parent
72fa76f
commit 81f6737
Showing
45 changed files
with
4,199 additions
and
128 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
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
File renamed without changes.
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,60 @@ | ||
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.7 | ||
targetCompatibility = 1.7 | ||
|
||
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-httpjson:{{version.gax_httpjson}}' | ||
testCompile 'com.google.api:gax-httpjson:{{version.gax_httpjson}}:testlib' | ||
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
Oops, something went wrong.