-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into explicit-dynamic-routing-header
- Loading branch information
Showing
23 changed files
with
155 additions
and
393 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
PROPERTIES = { | ||
"version.com_google_protobuf": "3.19.1", | ||
# Version of google-java-format is downgraded from 1.8 to 1.7, because 1.8 supports java 11 minimum, while our JRE is java 8. | ||
"version.google_java_format": "1.7", | ||
"version.com_google_api_common_java": "1.9.3", | ||
"version.io_grpc_java": "1.42.1", | ||
|
||
# Common deps. | ||
"maven.com_google_guava_guava": "com.google.guava:guava:30.1-android", | ||
"maven.com_google_code_findbugs_jsr305": "com.google.code.findbugs:jsr305:3.0.0", | ||
"maven.com_google_auto_value_auto_value": "com.google.auto.value:auto-value:1.7.2", | ||
"maven.com_google_auto_value_auto_value_annotations": "com.google.auto.value:auto-value-annotations:1.7.2", | ||
"maven.com_google_code_gson": "com.google.code.gson:gson:2.8.6", | ||
"maven.com_google_protobuf_protobuf_java": "com.google.protobuf:protobuf-java:3.19.1", | ||
"maven.io_github_java_diff_utils": "io.github.java-diff-utils:java-diff-utils:4.0", | ||
"maven.javax_annotation_javax_annotation_api": "javax.annotation:javax.annotation-api:1.3.2", | ||
"maven.javax_validation_javax_validation_api": "javax.validation:validation-api:2.0.1.Final", | ||
|
||
# Gapic YAML parsing for batching settings. | ||
"maven.org_yaml_snakeyaml": "org.yaml:snakeyaml:1.26", | ||
|
||
# ServiceStubSettings class. Used only in generated code. | ||
"maven.org_threeten_threetenbp": "org.threeten:threetenbp:1.3.3", | ||
|
||
# Testing. | ||
"maven.junit_junit": "junit:junit:4.13.1", | ||
# This hamcrest-core dependency is for running JUnit test manually, before JUnit 4.11 it's wrapped along with JUnit package. | ||
# But now it has to be explicitly added. | ||
"maven.org_hamcrest_hamcrest_core": "org.hamcrest:hamcrest-core:1.3", | ||
"maven.org_mockito_mockito_core": "org.mockito:mockito-core:2.21.0", | ||
# Keep in sync with gax-java. | ||
"maven.com_google_truth_truth": "com.google.truth:truth:1.1.2", | ||
} |
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.gradle.jvmargs=-Xmx2048m |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package(default_visibility = ["//test/integration:__pkg__"]) | ||
|
||
exports_files(["diff_gen_and_golden.sh"]) | ||
exports_files(["diff_gen_and_golden.sh", "update_golden.sh"]) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
|
||
set -o errexit | ||
|
||
API_NAME=$1 | ||
RAW_SRCJAR=$( find . -name '*_java_gapic_srcjar_raw.srcjar' ) | ||
|
||
rm -rf srcjar_unpacked | ||
mkdir srcjar_unpacked | ||
cd srcjar_unpacked | ||
UNPACK_DIR=$PWD | ||
unzip -q -c "../${RAW_SRCJAR}" temp-codegen.srcjar | jar x | ||
|
||
cd ${BUILD_WORKSPACE_DIRECTORY}/test/integration/goldens/${API_NAME} | ||
|
||
# clear out existing Java and JSON files. | ||
find . -name '*.java' -delete | ||
find . -name 'gapic_metadata.json' -delete | ||
|
||
cp -r ${UNPACK_DIR}/src/main/java/* . | ||
cp -r ${UNPACK_DIR}/src/test/java/* . | ||
[ -d ${UNPACK_DIR}/proto ] && cp -r ${UNPACK_DIR}/proto/src/main/java/* . | ||
|
||
find . -name 'PlaceholderFile.java' -delete | ||
find . -type d -empty -delete |
Oops, something went wrong.