@@ -115,9 +115,8 @@ gitVersioning.apply(closureOf<GitVersioningPluginConfig> {
115
115
- ` versionFormat ` An arbitrary string, see [ Version Format & Placeholders] ( #version-format--placeholders )
116
116
- ` property ` A property definition to update the value of a property
117
117
- ` pattern ` An arbitrary regex to match property names
118
- - ` value ` The definition of the new property value
119
- - ` pattern ` An arbitrary regex to match property values
120
- - ` format ` The new value format of the property, see [ Version Format & Placeholders] ( #version-format--placeholders )
118
+ - ` valueFormat ` The new value format of the property, see [ Version Format & Placeholders] ( #version-format--placeholders )
119
+ - * optional* ` valuePattern ` An arbitrary regex to match and use capture group values of property value
121
120
- ⚠ ** considered if...**
122
121
* HEAD attached to a branch ` git checkout <BRANCH> ` <br >
123
122
* Or branch name is provided by environment variable or command line parameter
@@ -127,9 +126,8 @@ gitVersioning.apply(closureOf<GitVersioningPluginConfig> {
127
126
- ` versionFormat ` An arbitrary string, see [ Version Format & Placeholders] ( #version-format--placeholders )
128
127
- ` property ` A property definition to update the value of a property
129
128
- ` pattern ` An arbitrary regex to match property names
130
- - ` value ` The definition of the new property value
131
- - ` pattern ` An arbitrary regex to match property values
132
- - ` format ` The new value format of the property, see [ Version Format & Placeholders] ( #version-format--placeholders )
129
+ - ` valueFormat ` The new value format of the property, see [ Version Format & Placeholders] ( #version-format--placeholders )
130
+ - * optional* ` valuePattern ` An arbitrary regex to match and use capture group values of property value
133
131
- ⚠ ** considered if...**
134
132
* HEAD is detached ` git checkout <TAG> ` <br >
135
133
* Or tag name is provided by environment variable or command line parameter
@@ -138,9 +136,8 @@ gitVersioning.apply(closureOf<GitVersioningPluginConfig> {
138
136
- ` versionFormat ` An arbitrary string, see [ Version Format & Placeholders] ( #version-format--placeholders )
139
137
- ` property ` A property definition to update the value of a property
140
138
- ` pattern ` An arbitrary regex to match property names
141
- - ` value ` The definition of the new property value
142
- - ` pattern ` An arbitrary regex to match property values
143
- - ` format ` The new value format of the property, see [ Version Format & Placeholders] ( #version-format--placeholders )
139
+ - ` valueFormat ` The new value format of the property, see [ Version Format & Placeholders] ( #version-format--placeholders )
140
+ - * optional* ` valuePattern ` An arbitrary regex to match and use capture group values of property value
144
141
- ⚠ ** considered if...**
145
142
* HEAD is detached ` git checkout <COMMIT> ` and no matching version tag is pointing to HEAD<br >
146
143
272
269
```
273
270
274
271
# Changelog
272
+
273
+ ## 3.0.0
274
+ #### Features
275
+ * simplify ` property ` replacement configuration
276
+
277
+ #### Breaking Changes
278
+ * simplify ` property ` replacement configuration
279
+
280
+ new config
281
+ ``` groovy
282
+ gitVersioning.apply {
283
+ branch {
284
+ pattern = 'master'
285
+ versionFormat = '${version}'
286
+ property {
287
+ pattern = 'revision'
288
+ valueFormat = '${branch-SNAPSHOT}'
289
+ }
290
+ }
291
+ }
292
+ ```
293
+ old config
294
+ ```groovy
295
+ gitVersioning.apply {
296
+ branch {
297
+ pattern = 'master'
298
+ versionFormat = '${version}'
299
+ property {
300
+ pattern ='revision'
301
+ value {
302
+ format = '${branch-SNAPSHOT}'
303
+ }
304
+ }
305
+ }
306
+ }
307
+ ```
308
+
275
309
### 2.1.0
276
310
* add `${dirty}` flag version format placeholder
277
311
* add `git.dirty` property
0 commit comments