Skip to content

Releases: ajoberstar/gradle-git-publish

5.0.0-beta.1

06 Oct 04:38
5.0.0-beta.1
67f2158
Compare
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
Compare
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
Compare
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
Compare
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

4.1.1

14 Aug 21:15
58699af
Compare
Choose a tag to compare

A small release to fix a bug related to Gradle's stale output tracking. If your project's .gradle directory is missing (e.g. first build) Gradle would delete the publish repo dir (build/gitPublish/*) after the gitPublishCopy thinking it was stale. As a result the gitPublishCommit would fail due to a missing repo directory. We now inform Gradle that the copy task's state should not be tracked (the other tasks were already set up that way).

NOTE: The fix to #99 only works on Gradle 7.3+. I highly recommend not using lower versions of gradle.

Breaking Changes

None

Enhancements

None

Fixes

  • #99 No such file or directory during gitPublishCommit

Deprecations

None

Compatibility

Tested on the following version:

Java Version Gradle Versions
11 7.0.2, 7.5.1
17 7.3.3, 7.5.1

4.1.0

19 Feb 22:41
Compare
Choose a tag to compare

Breaking Changes

None

Enhancements

  • #86 Supports multiple git publications per project

Fixes

  • #82 Orphan branches now properly set tracking, improving up-to-date checks

Deprecations

None

Compatibility

Tested on the following version:

Java Version Gradle Versions
11 7.0.2, 7.4
17 7.3.3, 7.4
None

Deprecations

None

Compatibility

Tested on the following version:

Java Version Gradle Versions
11 7.0.2, 7.4
17 7.3.3, 7.4

4.1.0-rc.1

12 Feb 02:19
Compare
Choose a tag to compare
4.1.0-rc.1 Pre-release
Pre-release

Breaking Changes

None

Enhancements

  • #86 Supports multiple git publications per project

Fixes

  • #82 Orphan branches now properly set tracking, improving up-to-date checks

Deprecations

None

Compatibility

Tested on the following version:

Java Version Gradle Versions
11 7.0.2, 7.4
17 7.3.3, 7.4
None

Deprecations

None

Compatibility

Tested on the following version:

Java Version Gradle Versions
11 7.0.2, 7.4
17 7.3.3, 7.4

4.0.0

10 Feb 18:41
Compare
Choose a tag to compare

Breaking Changes

  • Upgrades to Grgit 5 (#85)
  • Drops support for Java 8 (due to Grgit upgrade)
  • Drops support for Gradle <7

Enhancements

  • Grgit instance now created via BuildService, (#60, #70)
  • Supports --configuration-cache (#93)

Fixes

None

Deprecations

None

Compatibility

Tested on the following version:

Java Version Gradle Versions
11 7.0.2, 7.4
17 7.3.3, 7.4

4.0.0-rc.1

10 Feb 03:34
8a1d75a
Compare
Choose a tag to compare
4.0.0-rc.1 Pre-release
Pre-release

Breaking Changes

  • Upgrades to Grgit 5 (#85)
  • Drops support for Java 8 (due to Grgit upgrade)
  • Drops support for Gradle <7

Enhancements

  • Grgit instance now created via BuildService, (#60, #70)
  • Supports --configuration-cache (#93)

Fixes

None

Deprecations

None

Compatibility

Tested on the following version:

Java Version Gradle Versions
11 7.0.2, 7.4
17 7.3.3, 7.4

3.0.1

09 Feb 18:38
Compare
Choose a tag to compare

Starts publishing to Maven Central and drops publishing directly to Gradle plugin portal to really ensure POM references static versions. Since the plugin is published to Maven Central (which the Gradle plugin portal proxies), no changes should be needed from consumers.

Breaking Changes

None

Enhancements

None

Fixes

  • #97 Publishes POMs with static versions

Deprecations

None

Compatibility

Tested on the following version:

Java Version Gradle Versions
8 5.0, 5.6.4, 6.0.1, 6.9.2, 7.0.2, 7.4
11 5.0, 5.6.4, 6.0.1, 6.9.2, 7.0.2, 7.4
17 7.3.3, 7.4