Releases: ajoberstar/gradle-git-publish
5.1.0
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
andpassword
properties toGitPublication
for cases where credentials are needed (via #116)
Fixes
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
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 reportUP_TO_DATE
instead ofSKIPPED
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
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 reportUP_TO_DATE
instead ofSKIPPED
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
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 reportUP_TO_DATE
instead ofSKIPPED
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
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
4.2.0
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
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
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
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 |