Skip to content

Commit 128b0b0

Browse files
chore(java): add a note in README for migrated split repos (googleapis#1687) (googleapis#78)
* chore(java): add a note in README for migrated split repos Disable renovate bot and flaky bot for split repositories that have moved to the Java monorepo. The Java monorepo will pass the "monorepo=True" parameter to java.common_templates method in its owlbot.py files so that the migration note will not appear in the README in the monorepo. Co-authored-by: Jeff Ching <[email protected]> Source-Link: https://github.com/googleapis/synthtool/commit/d4b291604f148cde065838c498bc8aa79b8dc10e Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:edae91ccdd2dded2f572ec341a768ad180305a3e8fbfd93064b28e237d35920a
1 parent 1c782f3 commit 128b0b0

11 files changed

+36
-63
lines changed

java-dataform/.github/.OwlBot.lock.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
16-
digest: sha256:f14e3fefe8e361e85752bd9890c8e56f2fe25f1e89cbb9597e4e3c7a429203a3
16+
digest: sha256:edae91ccdd2dded2f572ec341a768ad180305a3e8fbfd93064b28e237d35920a

java-dataform/.github/ISSUE_TEMPLATE/bug_report.md

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ about: Create a report to help us improve
44

55
---
66

7+
:bus: This library has moved to
8+
[google-cloud-java/java-dataform](
9+
https://github.com/googleapis/google-cloud-java/tree/main/java-dataform).
10+
This repository will be archived in the future.
11+
712
Thanks for stopping by to let us know something could be better!
813

914
**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.

java-dataform/.github/ISSUE_TEMPLATE/feature_request.md

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ about: Suggest an idea for this library
44

55
---
66

7+
:bus: This library has moved to
8+
[google-cloud-java/java-dataform](
9+
https://github.com/googleapis/google-cloud-java/tree/main/java-dataform).
10+
This repository will be archived in the future.
11+
712
Thanks for stopping by to let us know something could be better!
813

914
**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.

java-dataform/.kokoro/dependencies.sh

-51
Original file line numberDiff line numberDiff line change
@@ -57,54 +57,3 @@ retry_with_backoff 3 10 \
5757
-Dclirr.skip=true
5858

5959
mvn -B dependency:analyze -DfailOnWarning=true
60-
61-
echo "****************** DEPENDENCY LIST COMPLETENESS CHECK *******************"
62-
## Run dependency list completeness check
63-
function completenessCheck() {
64-
# Output dep list with compile scope generated using the original pom
65-
# Running mvn dependency:list on Java versions that support modules will also include the module of the dependency.
66-
# This is stripped from the output as it is not present in the flattened pom.
67-
# Only dependencies with 'compile' or 'runtime' scope are included from original dependency list.
68-
msg "Generating dependency list using original pom..."
69-
mvn dependency:list -f pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e 's/ --.*//' >.org-list.txt
70-
71-
# Output dep list generated using the flattened pom (only 'compile' and 'runtime' scopes)
72-
msg "Generating dependency list using flattened pom..."
73-
mvn dependency:list -f .flattened-pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' >.new-list.txt
74-
75-
# Compare two dependency lists
76-
msg "Comparing dependency lists..."
77-
diff .org-list.txt .new-list.txt >.diff.txt
78-
if [[ $? == 0 ]]
79-
then
80-
msg "Success. No diff!"
81-
else
82-
msg "Diff found. See below: "
83-
msg "You can also check .diff.txt file located in $1."
84-
cat .diff.txt
85-
return 1
86-
fi
87-
}
88-
89-
# Allow failures to continue running the script
90-
set +e
91-
92-
error_count=0
93-
for path in **/.flattened-pom.xml
94-
do
95-
# Check flattened pom in each dir that contains it for completeness
96-
dir=$(dirname "$path")
97-
pushd "$dir"
98-
completenessCheck "$dir"
99-
error_count=$(($error_count + $?))
100-
popd
101-
done
102-
103-
if [[ $error_count == 0 ]]
104-
then
105-
msg "All checks passed."
106-
exit 0
107-
else
108-
msg "Errors found. See log statements above."
109-
exit 1
110-
fi

java-dataform/.kokoro/nightly/integration.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ env_vars: {
2323

2424
env_vars: {
2525
key: "ENABLE_FLAKYBOT"
26-
value: "true"
26+
value: "false"
2727
}
2828

2929
env_vars: {

java-dataform/.kokoro/nightly/java11-integration.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ env_vars: {
2323

2424
env_vars: {
2525
key: "ENABLE_FLAKYBOT"
26-
value: "true"
26+
value: "false"
2727
}
2828

2929
env_vars: {

java-dataform/.kokoro/nightly/samples.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ env_vars: {
3434

3535
env_vars: {
3636
key: "ENABLE_FLAKYBOT"
37-
value: "true"
37+
value: "false"
3838
}

java-dataform/.kokoro/requirements.in

+2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ pycparser==2.21
1616
pyperclip==1.8.2
1717
python-dateutil==2.8.2
1818
requests==2.27.1
19+
certifi==2022.9.24
1920
importlib-metadata==4.8.3
2021
zipp==3.6.0
2122
google_api_core==2.8.2
2223
google-cloud-storage==2.0.0
24+
google-resumable-media==2.3.3
2325
google-cloud-core==2.3.1
2426
typing-extensions==4.1.1
2527
urllib3==1.26.12

java-dataform/.kokoro/requirements.txt

+9-5
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ cachetools==4.2.4 \
1616
# via
1717
# -r requirements.in
1818
# google-auth
19-
certifi==2022.9.14 \
20-
--hash=sha256:36973885b9542e6bd01dea287b2b4b3b21236307c56324fcc3f1160f2d655ed5 \
21-
--hash=sha256:e232343de1ab72c2aa521b625c80f699e356830fd0e2c620b465b304b17b0516
22-
# via requests
19+
certifi==2022.9.24 \
20+
--hash=sha256:0d9c601124e5a6ba9712dbc60d9c53c21e34f5f641fe83002317394311bdce14 \
21+
--hash=sha256:90c1a32f1d68f940488354e36370f6cca89f0f106db09518524c88d6ed83f382
22+
# via
23+
# -r requirements.in
24+
# requests
2325
cffi==1.15.1 \
2426
--hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \
2527
--hash=sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef \
@@ -218,7 +220,9 @@ google-crc32c==1.3.0 \
218220
google-resumable-media==2.3.3 \
219221
--hash=sha256:27c52620bd364d1c8116eaac4ea2afcbfb81ae9139fb3199652fcac1724bfb6c \
220222
--hash=sha256:5b52774ea7a829a8cdaa8bd2d4c3d4bc660c91b30857ab2668d0eb830f4ea8c5
221-
# via google-cloud-storage
223+
# via
224+
# -r requirements.in
225+
# google-cloud-storage
222226
googleapis-common-protos==1.56.3 \
223227
--hash=sha256:6f1369b58ed6cf3a4b7054a44ebe8d03b29c309257583a2bbdc064cd1e4a1442 \
224228
--hash=sha256:87955d7b3a73e6e803f2572a33179de23989ebba725e05ea42f24838b792e461

java-dataform/README.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ Java idiomatic client for [Cloud Dataform][product-docs].
1212
> make backwards-incompatible changes.
1313
1414

15+
:bus: In October 2022, this library has moved to
16+
[google-cloud-java/java-dataform](
17+
https://github.com/googleapis/google-cloud-java/tree/main/java-dataform).
18+
This repository will be archived in the future.
19+
Future releases will appear in the new repository (https://github.com/googleapis/google-cloud-java/releases).
20+
The Maven artifact coordinates (`com.google.cloud:google-cloud-dataform`) remain the same.
21+
1522
## Quickstart
1623

1724

@@ -22,20 +29,20 @@ If you are using Maven, add this to your pom.xml file:
2229
<dependency>
2330
<groupId>com.google.cloud</groupId>
2431
<artifactId>google-cloud-dataform</artifactId>
25-
<version>0.2.4</version>
32+
<version>0.4.0</version>
2633
</dependency>
2734
```
2835

2936
If you are using Gradle without BOM, add this to your dependencies:
3037

3138
```Groovy
32-
implementation 'com.google.cloud:google-cloud-dataform:0.2.4'
39+
implementation 'com.google.cloud:google-cloud-dataform:0.4.0'
3340
```
3441

3542
If you are using SBT, add this to your dependencies:
3643

3744
```Scala
38-
libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.2.4"
45+
libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.4.0"
3946
```
4047

4148
## Authentication

java-dataform/renovate.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"enabled": false,
23
"extends": [
34
":separateMajorReleases",
45
":combinePatchMinorReleases",

0 commit comments

Comments
 (0)