Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update plugin org.ajoberstar.grgit to v5 #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

we-renovate[bot]
Copy link

@we-renovate we-renovate bot commented Nov 28, 2024

This PR contains the following updates:

Package Type Update Change OpenSSF
org.ajoberstar.grgit plugin major 2.3.0 -> 5.3.0 OpenSSF Scorecard

Release Notes

ajoberstar/grgit (org.ajoberstar.grgit)

v5.3.0

Compare Source

Small release to resolve outstanding issues that I still felt were in scope (given feature freeze, see README for more background).

Breaking Changes

None

Enhancements

  • #​362 Add GrgitService#findGrgit() which returns an Optional<Grgit> allowing accessing whether a repo is present or not, rather than throwing like getGrgit() does.

Fixes

  • #​391 initIfNoTExists on GrgitService works now
  • 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.10.2
17 7.3.3, 7.6.4, 8.0.2, 8.10.2
21 8.4, 8.10.2

v5.2.2

Compare Source

Small patch to pick up new dependencies.

Breaking Changes

None

Enhancements

None

Fixes

  • 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.6

v5.2.1

Compare Source

Small patch to pick up new dependencies.

Breaking Changes

None

Enhancements

None

Fixes

  • #​394 Update dependencies to resolve JGit vulnerability

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

v5.2.0

Compare Source

This release adds support for the depth option on fetch, which I meant to include in 5.1.0.

Breaking Changes

None

Enhancements

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

v5.1.0

Compare Source

This release adds support for shallow clones, Gradle 8, and fixes some issues with the service plugin

NOTE: While the org.ajoberstar.grgit.service plugin is compatible with the configuration cache, the org.ajoberstar.grgit plugin no longer is due to changes in Gradle 8. If you want configuration cache support, please switch to the service plugin.

Breaking Changes

None

Enhancements

Fixes

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

v5.0.0

Compare Source

This release includes a number of breaking changes, with the main user highlight being the long awaited configuration cache support.

Known Issue: #​356 highlighted that (some?) multi-project builds will encounter an error when applying org.ajoberstar.grgit or org.ajoberstar.grgit.service to multiple projects. This is caused by an upstream Gradle issue https://github.com/gradle/gradle/issues/17559 that is, as of 2/10/2022, is targeted to be fixed in 7.5. I suggest multi-project builds hold off on upgrading until that upstream issue is resolved.

Breaking Changes

  • Upgrade to JGit 6
  • Drops support for Java 8 (due to JGit upgrade)
  • Drops support for Gradle 4, 5, and 6
  • Drops support for Groovy 2
  • org.ajoberstar.grgit is no longer auto-applied to all subprojects, you must apply it to any project that wants to access the grgit property

Enhancements

  • #​322 --configuration-cache is now supported (thanks @​abelom and @​runningcode)
  • #​354 A new org.ajoberstar.grgit-service plugin is available to provide lazy access to a GrgitService (a Gradle BuildService). See the README for tips on how to use this.
  • Adds grgit.remote.remove(name: 'origin') to remove remotes

Fixes

None

Deprecations

None

Compatibility

Tested on the following version:

Java Version Gradle Versions
11 7.0.2, 7.3.3, 7.4-rc-2
17 7.3.3, 7.4-rc-2

v4.1.1

Compare Source

Resolving an issue with the POM in 4.1.0 that was pulling in the latest JGit (which in JGit 6, causes incompatibility with Java 8).

Breaking Changes

None

Enhancements

  • Published to Maven Central

Fixes

  • Pin POM to JGit 5.13.0 to fix #​339

Deprecations

None

Compatibility

Tested on the following version:

Java Version Gradle Versions
8 4.0.2, 4.10.3, 5.0, 5.6.4, 6.0.1, 6.6.1, 6.7-rc-1
11 5.0, 5.6.4, 6.0.1, 6.6.1, 6.7-rc-1
15 6.3, 6.6.1, 6.7-rc-1

v4.1.0

Compare Source

A few small fixes and dependency bumps.

Breaking Changes

None

Enhancements

Fixes

None

Deprecations

None

Compatibility

Tested on the following version:

Java Version Gradle Versions
8 4.0.2, 4.10.3, 5.0, 5.6.4, 6.0.1, 6.6.1, 6.7-rc-1
11 5.0, 5.6.4, 6.0.1, 6.6.1, 6.7-rc-1
15 6.3, 6.6.1, 6.7-rc-1

v4.0.2

Compare Source

A few small fixes and dependency bumps.

Breaking Changes

None

Enhancements

None

Fixes

  • #​298 Fix NPE when calling grgit.head() on an empty repo, now returns null
  • #​305 Remove extra close call that may be triggering a warning message
  • Update to JGit 5.7.0

Deprecations

None

Compatibility

Tested on the following version:

Java Version Gradle Versions
8 4.0.2, 4.10.3, 5.0, 5.6.4, 6.0.1, 6.3
11 5.0, 5.6.4, 6.0.1, 6.3
14 6.3

v4.0.1

Compare Source

A fix to implement a new abstract method introduced in JGit 5.5.2 for the SystemReader class (which is used as part of Grgit's support for SSH).

Breaking Changes

None

Enhancements

None

Fixes

  • Missing abstract method specified by JGit SystemReader #​309

Deprecations

None

Compatibility

Tested on the following version:

Java Version Gradle Versions
8 4.0.2, 4.10.3, 5.0, 5.6.4, 6.0.1, 6.1-rc-1
11 5.0, 5.6.4, 6.0.1, 6.1-rc-1

v4.0.0

Compare Source

A few assorted features, but be careful about the drop of Gradle 3 support if that was important to you.

Breaking Changes

  • Gradle 3 is no longer supported.
  • grgit is now an extension rather than an extra property. #​292 (Thanks @​JLLeitschuh)

Enhancements

  • Better Kotlin compatibility by using extension instead of extra property. #​292 (Thanks @​JLLeitschuh)
  • Support commit.sign boolean flag for GPG commits. #​300 (Thanks @​tlinkowski)
  • Upgrade JGit dependency from 5.3.0 to 5.5.1.

Fixes

  • Properly close JGit repository #​288

Deprecations

None

Compatibility

Tested on the following version:

Java Version Gradle Versions
8 4.0.2, 4.10.3, 5.0, 5.6.4, 6.0
11 5.0, 5.6.4, 6.0

v3.1.1

Compare Source

Fix for a unintentional breaking change in 3.1.0 for Groovy 2.4 (and Gradle <5) users.

Breaking Changes

None

Enhancements

None

Fixes

  • Restore compatibility with Groovy 2.4 (and by extension Gradle <5)

Deprecations

None

Compatibility

Tested on the following version:

Java Version Gradle Versions
8 3.0, 3.5.1, 4.0, 4.10.3, 5.0, 5.3
11 5.0, 5.3

v3.1.0

Compare Source

This is a feature release providing a few improvements to grgit.log, grgit.show, and grgit.push.

Breaking Changes

None

Enhancements

  • #​274 Support specifying push options
  • #​272 Throw IllegalArgumentException instead of NPE when log op can't find revstr
  • #​273 ShowOp now returns renames with old and new paths, instead of just new paths (Thanks to @​mithomas)
  • Upgrade from JGit 5.1.3 to 5.3.0

Fixes

  • Closing ObjectReader used during parsing commits (related to #​182)

Deprecations

None

Compatibility

Tested on the following version:

Java Version Gradle Versions
8 3.0, 3.5.1, 4.0, 4.10.3, 5.0, 5.3
11 5.0, 5.3

v3.0.0

Compare Source

This is a breaking release, supporting JGit 5 and Groovy 2.5.

However, the more significant change is the removal of some previous authentication options. Up until Grgit 3, we leveraged JGit's default JSch support for SSH communication. This is a Java implementation of the SSH protocol. Additionally, the JSch agent proxy library was used to support ssh-agent and Pageant. Those features caused numerous headaches with the differences between how the Java implementation and system SSH worked. JSch and JSch agent proxy support is now removed.

All SSH communication will leverage the command referenced by the GIT_SSH env var or an ssh or plink executable on your PATH.

Review the authentication documentation for details.

Breaking Changes

  • #​233 Upgrade to JGit 5. Generally, this should not be breaking, but there are some behavior changes documented.
  • Maven coordinates have changed to break the Core and Gradle features into their own dependencies:
    • org.ajoberstar.grgit:grgit-core:<version> if you're using as a library
    • org.ajoberstar.grgit:grgit-gradle:<version> if you're using from Gradle (the plugin ID, org.ajoberstar.grgit, has not changed)
  • #​244 Interactive credentials (i.e. the AWT pop-up window) is no longer supported.
  • #​245 JSch agent support has been removed. System ssh and plink commands are now used instead of JSch.

Enhancements

  • #​237 Groovy 2.5 is now supported (Groovy 2.4 is still compatible)
  • grgit.describe() now supports a tags option to include un-annotated tags (the default is false, but true would match the JGit 4 behavior)
  • #​255 The OpenOp now has a credentials method to be consistent with CloneOp.
  • #​250 Logging when no Git repo is found by the Gradle plugin is downgraded to debug.
  • #​262 EXPERIMENTAL Gradle Kotlin DSL compatibility. This project will remain explicitly dedicated to Groovy bindings, so I will not consider it a breaking change if this stops working in the future.

Fixes

None

Deprecations

  • #​255 The OpenOp creds parameter was deprecated in favor of the new credentials parameter.

Compatibility

Tested on the following version:

Java Version Gradle Versions
8 3.0, 3.5.1, 4.0, 4.10.2, 5.0-rc-2
9 4.2.1, 4.10.2, 5.0-rc-2
10 4.2.1, 4.10.2, 5.0-rc-2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants