You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/using-the-plugin.md
+23-1Lines changed: 23 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -271,6 +271,9 @@ It's really simple to setup this plugin; below is a sample pom that you may base
271
271
Please note that the strings here are Java regexes ({@code .*} is globbing, not plain {@code *}).
272
272
273
273
This feature was implemented in response to [this issue](https://github.com/git-commit-id/maven-git-commit-id-plugin/issues/91), so if you're curious about the use-case, check that issue.
274
+
275
+
Prior to version 3.0.0 the plugin used the 'naive' approach to ask for all properties and then apply filtering. However with the growing numbers of properties each property eat more and more of execution time that will be filtered out afterwards.
276
+
With 3.0.0 this behaviour was readjusted to a 'selective running' approach whereby the plugin will not even try to get the property when excluded. Such behaviour can result in an overall reduced execution time of the plugin (see https://github.com/git-commit-id/maven-git-commit-id-plugin/issues/408 for details).
@@ -290,6 +293,10 @@ It's really simple to setup this plugin; below is a sample pom that you may base
290
293
as well as {@code email} properties into the resulting files.
291
294
292
295
Please note that the strings here are Java regexes ({@code .*} is globbing, not plain {@code *}).
296
+
297
+
298
+
Prior to version 3.0.0 the plugin used the 'naive' approach to ask for all properties and then apply filtering. However with the growing numbers of properties each property eat more and more of execution time that will be filtered out afterwards.
299
+
With 3.0.0 this behaviour was readjusted to a 'selective running' approach whereby the plugin will not even try to get the property when included. Such behaviour can result in an overall reduced execution time of the plugin (see https://github.com/git-commit-id/maven-git-commit-id-plugin/issues/408 for details).
@@ -548,6 +555,9 @@ It's really simple to setup this plugin; below is a sample pom that you may base
548
555
549
556
Please note that for security purposes not all references might be allowed as configuration.
550
557
If you have a specific use-case that is currently not white listed feel free to file an issue.
558
+
559
+
Note with version 3.0.0:
560
+
When an user uses the `evaluateOnCommit` property to gather the branch for an arbitrary commit (really anything besides the default `HEAD`) this plugin will perform a `git branch --points-at` which might return a comma separated list of branch names that points to the specified commit.
551
561
-->
552
562
<evaluateOnCommit>HEAD</evaluateOnCommit>
553
563
@@ -565,6 +575,18 @@ It's really simple to setup this plugin; below is a sample pom that you may base
565
575
detached head state and therefore a commit id as branch name.
|`git.branch`| Represents the current branch name. Falls back to commit-id for detached HEAD. |
665
+
|`git.branch`| Represents the current branch name. Falls back to commit-id for detached HEAD. Note: When an user uses the `evaluateOnCommit` property to gather the branch for an arbitrary commit (really anything besides the default `HEAD`) this plugin will perform a `git branch --points-at` which might return a comma separated list of branch names that points to the specified commit. |
644
666
|`git.build.number.unique`| Represents a system wide unique build number (see notes below). |
645
667
|`git.build.host`| Represents the hostname where the properties have been generated. |
646
668
|`git.build.time`| Represents the (formated) timestamp when the last build was executed. If written to the git.properties file represents the latest build time when that file was written / updated. |
0 commit comments