Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Releases: ajoberstar/gradle-git-publish

5.1.2

26 Aug 23:53
5.1.2
fc04a18

Choose a tag to compare

Now tested against Gradle 9. No changes to internals.

Breaking Changes

None

Enhancements

None

Fixes

None

Deprecations

None

Compatibility

Tested on the following version:

Java Version Gradle Versions
11 7.0.2, 7.6.6, 8.0.2, 8.14.3
17 7.3.3, 7.6.6, 8.0.2, 8.14.3, 9.0.0, 9.1.0-rc-1
21 8.4, 8.14.3, 9.0.0, 9.1.0-rc-1

5.1.1

09 Mar 19:30
5.1.1
80b43f5

Choose a tag to compare

Resolves a scenario where the credentials provided in the plugin block do not take precedence over a global credentials provider. If credentials are not provided to the plugin, the global credentials helper(s) will still be used.

Breaking Changes

None

Enhancements

None

Fixes

  • #118 Ensure that credentials provided in the build file take precedence over any global credential helpers.

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

5.1.1-rc.1

09 Mar 16:34
5.1.1-rc.1
80b43f5

Choose a tag to compare

5.1.1-rc.1 Pre-release
Pre-release

Resolves a scenario where the credentials provided in the plugin block do not take precedence over a global credentials provider. If credentials are not provided to the plugin, the global credentials helper(s) will still be used.

Breaking Changes

None

Enhancements

None

Fixes

  • #118 Ensure that credentials provided in the build file take precedence over any global credential helpers.

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

5.1.0

10 Dec 04:54
5.1.0
6275311

Choose a tag to compare

Resolves some regressions discovered by @marcphilipp.

Most notably, with Grgit removed any authentication methods you previously used such as GRGIT_USER or -Dorg.ajoberstar.grgit.auth.username won't work in v5. This version adds new options to replace them.

Breaking Changes

None

Enhancements

  • #115 Adds username and password properties to GitPublication for cases where credentials are needed (via #116)

Fixes

  • #114 Fixes use of fetchDepth when the project is in a shallow clone (via #116)

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

5.0.0

08 Dec 21:42
5.0.0
8b81ec4

Choose a tag to compare

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.2: Unchanged

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

5.0.0-beta.2

23 Nov 21:44
5.0.0-beta.2
8b81ec4

Choose a tag to compare

5.0.0-beta.2 Pre-release
Pre-release

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

5.0.0-beta.1

06 Oct 04:38
5.0.0-beta.1
67f2158

Choose a tag to compare

5.0.0-beta.1 Pre-release
Pre-release

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.

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

None

Deprecations

None

Compatibility

Tested on the following version:

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

4.2.2

18 Feb 07:45

Choose a tag to compare

Small patch to update dependencies and fix a configuration cache issue.

Breaking Changes

None

Enhancements

None

Fixes

  • #108 Resolve deprecation in not using usesService
  • Update dependencies

Deprecations

None

Compatibility

Tested on the following version:

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

4.2.1

21 Oct 19:31
052e388

Choose a tag to compare

Small patch to update dependencies.

Breaking Changes

None

Enhancements

None

Fixes

  • #107 Update dependencies

Deprecations

None

Compatibility

Tested on the following version:

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

4.2.0

22 Apr 01:41

Choose a tag to compare

Adds support for shallow clones, via the fetchDepth property on publications.

Breaking Changes

None

Enhancements

  • #57 Support shallow clones

Fixes

None

Deprecations

None

Compatibility

Tested on the following version:

Java Version Gradle Versions
11 7.0.2, 7.6.1, 8.0.2, 8.1.1
17 7.3.3, 7.6.1, 8.0.2, 8.1.1