Skip to content

5.0.0-beta.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@ajoberstar ajoberstar released this 23 Nov 21:44
· 4 commits to main since this release
5.0.0-beta.2
8b81ec4

Major change to reimplement using the Git CLI. The prior versions used grgit, which is deprecated and not necessary for the functionality of this plugin.

Using the Git CLI reduces use of further dependencies and increases compatibility with different Git features that JGit (which grgit wrapped) struggled with.

Since 5.0.0-beta.1: suppressed some of the noisy output and attempted a fix for #112 by using objects/info/alternates to reference the project's checkout repo rather than a full remote.

Breaking Changes

  • #111 Removed use of grgit, in favor of directly using the git CLI.
  • GitPublishPush will report UP_TO_DATE instead of SKIPPED if there aren't any commits to push up
  • Output of the tasks is different (since some of it is native git CLI output)

Enhancements

None

Fixes

  • #113 Use more efficient reference repo mechanism (objects/info/alternates) which should avoid issues with lightweight checkouts (see #112)
  • #113 Prevent fetching tags from remote
  • #113 Suppress warnings about initial branch during gitPublishReset

Deprecations

None

Compatibility

Tested on the following version:

Java Version Gradle Versions
11 7.0.2, 7.6.4, 8.0.2, 8.11.1
17 7.3.3, 7.6.4, 8.0.2, 8.11.1
21 8.4, 8.11.1