From 6aa40afe53a54c6ef797a229ef6a12c64df2dc9f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 26 Jan 2021 16:06:13 -0800 Subject: [PATCH] chore: scaffold samples dir (#24) * changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * scaffold samples dir * download docfx doclet resource * Update samples/snapshot/pom.xml Co-authored-by: Jeff Ching * update version number * use artifact id pubsublite-spark-sql-streaming Co-authored-by: Tianzi Cai Co-authored-by: Jeff Ching --- .kokoro/nightly/java7.cfg | 7 +++ .kokoro/presubmit/java7.cfg | 7 +++ .kokoro/release/publish_javadoc.cfg | 3 ++ pom.xml | 2 +- samples/pom.xml | 55 +++++++++++++++++++ samples/snapshot/pom.xml | 83 +++++++++++++++++++++++++++++ samples/snippets/pom.xml | 51 ++++++++++++++++++ synth.metadata | 2 +- synth.py | 5 +- versions.txt | 2 +- 10 files changed, 213 insertions(+), 4 deletions(-) create mode 100644 .kokoro/nightly/java7.cfg create mode 100644 .kokoro/presubmit/java7.cfg create mode 100644 samples/pom.xml create mode 100644 samples/snapshot/pom.xml create mode 100644 samples/snippets/pom.xml diff --git a/.kokoro/nightly/java7.cfg b/.kokoro/nightly/java7.cfg new file mode 100644 index 00000000..cb24f44e --- /dev/null +++ b/.kokoro/nightly/java7.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java7" +} diff --git a/.kokoro/presubmit/java7.cfg b/.kokoro/presubmit/java7.cfg new file mode 100644 index 00000000..cb24f44e --- /dev/null +++ b/.kokoro/presubmit/java7.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java7" +} diff --git a/.kokoro/release/publish_javadoc.cfg b/.kokoro/release/publish_javadoc.cfg index dba40856..cfa99b96 100644 --- a/.kokoro/release/publish_javadoc.cfg +++ b/.kokoro/release/publish_javadoc.cfg @@ -27,3 +27,6 @@ before_action { } } } + +# Downloads docfx doclet resource. This will be in ${KOKORO_GFILE_DIR}/ +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/docfx" \ No newline at end of file diff --git a/pom.xml b/pom.xml index b753bd77..c76571fc 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ 4.0.0 com.google.cloud pubsublite-spark-sql-streaming - 0.1.0-SNAPSHOT + 0.0.1-SNAPSHOT jar Pub/Sub Lite Spark SQL Streaming https://github.com/googleapis/java-pubsublite-spark diff --git a/samples/pom.xml b/samples/pom.xml new file mode 100644 index 00000000..47761966 --- /dev/null +++ b/samples/pom.xml @@ -0,0 +1,55 @@ + + + 4.0.0 + com.google.cloud + google-cloud-pubsublite-spark-samples + 0.0.1-SNAPSHOT + pom + Google Pub/Sub Lite Spark Connector Samples Parent + https://github.com/googleapis/java-pubsublite-spark + + Java idiomatic client for Google Cloud Platform services. + + + + + com.google.cloud.samples + shared-configuration + 1.0.18 + + + + 1.8 + 1.8 + UTF-8 + + + + snapshot + snippets + + + + + + org.apache.maven.plugins + maven-deploy-plugin + 2.8.2 + + true + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.8 + + true + + + + + diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml new file mode 100644 index 00000000..d1b20fae --- /dev/null +++ b/samples/snapshot/pom.xml @@ -0,0 +1,83 @@ + + + 4.0.0 + com.google.cloud + pubsublite-spark-snapshot + jar + Google Pub/Sub Lite Spark Connector Snapshot Samples + https://github.com/googleapis/java-pubsublite-spark + + + + com.google.cloud.samples + shared-configuration + 1.0.12 + + + + 1.8 + 1.8 + UTF-8 + + + + + + com.google.cloud + pubsublite-spark-sql-streaming + 0.0.1-SNAPSHOT + + + + + junit + junit + 4.13 + test + + + com.google.truth + truth + 1.0.1 + test + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.1.0 + + + add-snippets-source + + add-source + + + + ../snippets/src/main/java + + + + + add-snippets-tests + + add-test-source + + + + ../snippets/src/test/java + + + + + + + + diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml new file mode 100644 index 00000000..75ee5bb3 --- /dev/null +++ b/samples/snippets/pom.xml @@ -0,0 +1,51 @@ + + + 4.0.0 + com.google.cloud + pubsublite-spark-snippets + jar + Google Pub/Sub Lite Spark Connector Snippets + https://github.com/googleapis/java-pubsublite-spark + + + + com.google.cloud.samples + shared-configuration + 1.0.12 + + + + 1.8 + 1.8 + UTF-8 + + + + + + + + com.google.cloud + pubsublite-spark-sql-streaming + 0.0.0 + + + + + + junit + junit + 4.13 + test + + + com.google.truth + truth + 1.0.1 + test + + + diff --git a/synth.metadata b/synth.metadata index ea977b9c..26a76f0e 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsublite-spark.git", - "sha": "fd0572c74e21fd119dc8c34d1377e4c2a53228e2" + "sha": "6b2d3f80ff3485f747cc28be07383c4f25cbf958" } }, { diff --git a/synth.py b/synth.py index 768b934f..7005963e 100644 --- a/synth.py +++ b/synth.py @@ -16,4 +16,7 @@ import synthtool.languages.java as java -java.common_templates() +java.common_templates(excludes=[ + # TODO: allow when pubsublite-spark is available in libraries-bom + 'samples/install-without-bom/*', +]) diff --git a/versions.txt b/versions.txt index cba17482..788083cc 100644 --- a/versions.txt +++ b/versions.txt @@ -1,4 +1,4 @@ # Format: # module:released-version:current-version -pubsublite-spark:0.0.0:0.0.1-SNAPSHOT +pubsublite-spark-sql-streaming:0.0.0:0.0.1-SNAPSHOT