Skip to content

Version 2.2.5

Compare
Choose a tag to compare
@TheSnoozer TheSnoozer released this 30 Aug 22:21
· 727 commits to master since this release

Version 2.2.5 is finally there and includes various bug-fixes and improvements :-)

New Features / Bug-Fixes:

The main key-aspects that have been improved or being worked on are the following:

  • most likely the last release that supports Java 1.7
  • Full support for Java 7, Java 8, Java 9, Java 10 and Java 11 (potentially also working for any higher version)
  • add build number support (git.build.number and git.build.number.unique) for Bamboo, Hudson, Jenkins, TeamCity, Travis, Gitlab CI - #353 / #369
  • add git.branch support for GitlabCI - #368
  • add total commit count property via 'rev-list --count' -- #357
  • fixed a bug where the plugin fails when bamboo generates an unsupported gitRemoteString (the plugin now also never fails when this happens, it will simply log an exception and populate an empty string) -- #352 / #356
  • various dependency updates including support for java 10 (I think that should have worked before, but its now also tested with that version) -- #347 / #372

Getting the latest release

The plugin is available from Maven Central (see here), so you don't have to configure any additional repositories to use this plugin. All you need to do is to configure it inside your project as dependency:

<dependency>
    <groupId>pl.project13.maven</groupId>
    <artifactId>git-commit-id-plugin</artifactId>
    <version>2.2.5</version>
</dependency>

Known Issues / Limitations:

  • This plugin is unfortunately not working with Heroku which is due to the fact how Heroku works. In summary Heroku does not copy over the .git-repository but in order to determine the git properties this plugin relies on the fact that it has access to the git-repository. A somewhat workaround to get some information is outlined in #279 (comment)

Reporting Problems

If you find any problem with this plugin, feel free to report it here