Skip to content

Commit f8a9933

Browse files
authored
chore(java): allow overriding the versioning section of the Java README (#495)
Allows setting a `versioning` section in `.readme-partials.yaml` to override the versioning section.
1 parent 5ff2afc commit f8a9933

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • synthtool/gcp/templates/java_library

synthtool/gcp/templates/java_library/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,15 @@ Java 7 or above is required for using this client.
118118

119119
## Versioning
120120

121+
{% if 'partials' in metadata and metadata['partials']['versioning'] -%}
122+
{{ metadata['partials']['versioning'] }}
123+
{% else %}
121124
This library follows [Semantic Versioning](http://semver.org/).
122125

123126
{% if metadata['repo']['release_level'] in ['alpha', 'beta'] %}
124127
It is currently in major version zero (``0.y.z``), which means that anything may change at any time
125128
and the public API should not be considered stable.
126-
{% endif %}
127-
129+
{% endif %}{% endif %}
128130
## Contributing
129131

130132
{% if 'partials' in metadata and metadata['partials']['contributing'] -%}

0 commit comments

Comments
 (0)