Skip to content

Commit

Permalink
chore(java_templates): mark version bumps of current library as a cho…
Browse files Browse the repository at this point in the history
…re (#452)

With the samples/install-without-bom/pom.xml referencing the latest released library, we want to mark updates of this version as a chore for renovate bot.
  • Loading branch information
chingor13 authored Mar 24, 2020
1 parent a0d3133 commit ee4330a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion synthtool/gcp/templates/java_library/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
},
{
"packagePatterns": [
"^{{metadata['repo']['distribution_name']}}",
"^com.google.cloud:libraries-bom"
],
"semanticCommitType": "chore",
Expand All @@ -75,4 +76,4 @@
}
],
"semanticCommits": true
}
}
3 changes: 1 addition & 2 deletions synthtool/languages/java.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,9 @@ def bazel_library(
def _merge_common_templates(
source_text: str, destination_text: str, file_path: Path
) -> str:
log.debug(f"merge: {file_path}")
# keep any existing pom.xml
if file_path.match("pom.xml"):
log.info(f"existing pom file found ({file_path}) - keeping the existing")
log.debug(f"existing pom file found ({file_path}) - keeping the existing")
return destination_text

# by default return the newly generated content
Expand Down

0 comments on commit ee4330a

Please sign in to comment.