File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ gitVersioning {
56
56
}
57
57
}
58
58
```
59
+ - * optional* ` preferTags ` global enable(` true ` )/disable(` false ` ) prefer tag rules over branch rules if both match.
59
60
60
61
- ` branch ` specific version format definition.
61
62
- ` pattern ` An arbitrary regex to match branch names (has to be a ** full match pattern** e.g. ` feature/.+ ` )
@@ -146,6 +147,12 @@ gitVersioning {
146
147
147
148
### Parameters & Environment Variables
148
149
150
+ - Disable Plugin
151
+ - **Environment Variables**
152
+ - `export VERSIONING_DISABLE=true`
153
+ - **Command Line Parameters**
154
+ - `gradle ... -Pversioning.disable=true`
155
+
149
156
- Provide **branch** or **tag** name
150
157
- **Environment Variables**
151
158
- `export VERSIONING_GIT_BRANCH=$PROVIDED_BRANCH_NAME`
@@ -156,6 +163,12 @@ gitVersioning {
156
163
157
164
ℹ Especially useful for **CI builds** see [Miscellaneous Hints](#miscellaneous-hints)
158
165
166
+ - **Prefer Tags** for Versioning instead of Branches
167
+ - **Environment Variables**
168
+ - `export VERSIONING_PREFER_TAGS=true`
169
+ - **Command Line Parameters**
170
+ - `gradle ... -Pversioning.preferTags=true`
171
+
159
172
## Provided Project Properties
160
173
161
174
- `git.commit` e.g. '0fc20459a8eceb2c4abb9bf0af45a6e8af17b94b'
You can’t perform that action at this time.
0 commit comments