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
* The option can be used to tell the plugin how it should generate the formerly known property 'git.commit.id'. Due to some naming issues when exporting the properties as an json-object (https://github.com/ktoso/maven-git-commit-id-plugin/issues/122) we needed to change the export of the property from 'git.commit.id' to 'git.commit.id.full'.
336
+
* However, due to the fact that this is one of the major properties the plugin is exporting we just don't want to change the exporting mechanism and somehow throw the backwards compatibility away.
337
+
* That's the point where this switch comes into place!
338
+
* By default it is set to 'true' and will generate the formerly known property 'git.commit.id' as it was in the previous versions of the plugin. With keeping the switch set to 'true' the plugin will print a warning that using this switch set to 'true' is deprecated and may be removed in a future release. However keeping it to 'true' by default preserve backwards compatibility and allows to migrate to the new properties when it's convenient.
339
+
* If you set this switch to 'false' the plugin will export the formerly known property 'git.commit.id' to 'git.commit.id.full'.
340
+
*
341
+
* Note: Depending on your plugin configuration you obviously can choose the 'prefix' of your properties by setting the accordingly in the plugin's configuration. As a result this is therefore only an illustration what the switch means when 'prefix' is set to it's default value.
342
+
*
343
+
* @parameter default-value="true"
344
+
* @since 2.2.0
345
+
*/
346
+
@Deprecated
347
+
privatebooleangenerateCommitIdOldFashioned;
348
+
330
349
/**
331
350
* The Maven Session Object
332
351
*
@@ -383,6 +402,15 @@ public void execute() throws MojoExecutionException {
383
402
}
384
403
385
404
try {
405
+
if(generateCommitIdOldFashioned){
406
+
loggerBridge.warn("Using the property 'generateCommitIdOldFashioned' set to 'true' is deprecated and may be removed in a future release! Please refer to the readme on this issue.");
407
+
COMMIT_ID = COMMIT_ID_OLD;
408
+
}else{
409
+
// need to have this for the tests due the fact that they are switching back and forth
410
+
// for the end-user setting this shouldn't perform any changes (it's set to COMMIT_ID_NEW by default)
0 commit comments