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 - autoclosed #107

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 13, 2024

Mend Renovate

This PR contains the following updates:

Package Type Update Change OpenSSF
org.ajoberstar.grgit plugin major 1.7.2 -> 5.2.2 OpenSSF Scorecard

Release Notes

ajoberstar/grgit (org.ajoberstar.grgit)

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

v2.3.0

Compare Source

Small feature release to make improvements to existing operations.

Breaking Changes

None

Enhancements

Fixes

None

Deprecations

None

Compatibility

Tested on the following version:

Java Version Gradle Versions
8 3.0, 3.5.1, 4.0, 4.8-rc-3
9 4.2.1, 4.8-rc-3
10 4.2.1, 4.8-rc-3

v2.2.1

Compare Source

Fix release to publish static dependencies to the Gradle Plugin Portal. Previously static ones were being published to JCenter, but dynamic to the Portal. This caused a JGit 5 dependency to get pulled in which contains breaking changes.

Breaking Changes

None

Enhancements

None

Fixes

  • #​229 Publish static versions in POM on Gradle Plugin Portal to avoid pulling in breaking JGit 5 version

Deprecations

None

Compatibility

Tested on the following version:

Java Version Gradle Versions
8 3.0, 3.5.1, 4.0, 4.8-rc-3
9 4.2.1, 4.8-rc-3
10 4.2.1, 4.8-rc-3

v2.2.0

Compare Source

Feature release adding opt-in support of SSH via external ssh or plink commands as an alternative to JSch (which has been pretty problematic for people). The grgit-authentication documentation has been updated to show how to use this. However, note that if your remote is on Git 2.14+ you'll likely encounter JGit#529463 causing your program to hang. Hope is that this will be fixed in JGit's next release.

Rejected pushes now throw an exception instead of failing silently.

Additionally, a Consumer variant was added to all operations to make Java usage of Grgit easier.

grgit.add({ op ->
  op.setPatterns(Arrays.asList("."));
});

Breaking Changes

None

Enhancements

  • #​206 Support external SSH commands as an alternative to JSch
  • Support Consumer as an alternative to Closure or Map syntax on all operations

Fixes

  • #​216 Push used to fail silently when pre-receive hooks declined the push. This will now throw an exception.

Deprecations

None

Compatibility

Tested on the following version:

Java Version Gradle Versions
8 3.0 through 4.7
9 4.2.1. through 4.7
10 4.2.1 through 4.7

v2.1.2

Compare Source

Fix release to make lsremote respect any authentication settings you've made.

Breaking Changes

None

Enhancements

None

Fixes

  • #​222 lsremote() fails to use credentials configured on repository

Deprecations

None

Compatibility

Tested on the following version:

Java Version Gradle Versions
8 3.0 through 4.7-rc-1
9 4.2.1. through 4.7-rc-1
10 4.2.1 through 4.6

v2.1.1

Compare Source

Update dependencies and fix POM for Grgit to use static versions instead of ranges.

Breaking Changes

None

Enhancements

  • Bumps JGit dependency to 4.10.0.201712302008-r

Fixes

  • POM file for this project now uses fixed versions again. This was a symptom of using a dependency locking plugin without verifying the outputted POM.

Deprecations

None

Compatibility

Java: requires 8 or higher
Gradle: tested against 3.0, 3.1, 3.2, 3.2.1, 3.3, 3.4, 3.5, 3.5.1, 4.0, 4.0.1, 4.0.2, 4.1, 4.2, 4.2.1, 4.3, 4.3.1, 4.4, 4.4.1, 4.5, 4.5.1

v2.1.0

Compare Source

Adds support for the match option on describe.

Breaking Changes

None

Enhancements

  • #​183 Support git-describe --match
  • Bumps JGit dependency from 4.8.0.201706111038-r to 4.9.0.201710071750-r

Fixes

None

Deprecations

None

Compatibility

Java: requires 8 or higher
Gradle: tested against 3.0, 3.1, 3.2, 3.2.1, 3.3, 3.4, 3.5, 3.5.1, 4.0, 4.0.1, 4.0.2, 4.1, 4.2, 4.2.1

v2.0.1

Compare Source

Small fix release.

Breaking Changes

None

Enhancements

None

Fixes

Deprecations

None

Compatibility

Java: requires 8 or higher
Gradle: tested against 3.0, 3.1, 3.2, 3.2.1, 3.3, 3.4, 3.5, 3.5.1, 4.0, 4.0.1, 4.0.2, 4.1-rc-1

v2.0.0

Compare Source

This is a breaking release to clean up some outstanding deprecated items, require Java 8 (to be able to use the latest JGit), incorporate the org.ajoberstar.grgit Gradle plugin, and a few miscellaneous features.

All documentation has also been revised and migrated to a site that should be a little more friendly.

Breaking Changes

  • #​180 Require Java 8
  • #​67 Removed deprecated methods:
    • Grgit.open(String)
    • Grgit.open(String, Credentials)
    • Grgit.open(File)
    • Grgit.open(File, Credentials)
    • branch field on grgit.branch.status(...)

Enhancements

  • #​187 The org.ajoberstar.grgit plugin was added to this project (migrated from gradle-git)
    • After all tasks have finished the grgit instance will be closed
    • Plugin will warn you if you apply the plugin in a way that causes one project to overwrite another's grgit property.
  • #​85 Methods on Grgit are now generated by an AST transformation, so they should be visible in IDE completion.
  • #​174 grgit.describe(...) now supports a longDescr option to force it to always output the more verbose format (thanks to Frank Vennemeyer)
  • #​172 grgit.describe(...) now supports a commit option to choose an alternate target to describe than HEAD (thanks to Frank Vennemeyer)
  • Introduced grgit.branch.current() to replace the now deprecated grgit.branch.getCurrent(). These have identical functionality.

Fixes

  • #​171 Safer selection of Jsch agent for authentication

Deprecations

  • grgit.branch.current / grgit.branch.getCurrent() has been deprecated in favor of grgit.branch.current()

Compatibility

Java: requires 8 or higher
Gradle: tested against 3.0, 3.1, 3.2, 3.2.1, 3.3, 3.4, 3.5, 3.5.1, 4.0, 4.0.1, 4.0.2, 4.1-rc-1


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/org.ajoberstar.grgit-5.x branch 7 times, most recently from 79c5497 to c048613 Compare March 20, 2024 09:17
@renovate renovate bot force-pushed the renovate/org.ajoberstar.grgit-5.x branch from c048613 to cb12ab2 Compare March 21, 2024 09:08
@renovate renovate bot force-pushed the renovate/org.ajoberstar.grgit-5.x branch 5 times, most recently from 7e67bf8 to 204c6f3 Compare April 24, 2024 10:32
@renovate renovate bot force-pushed the renovate/org.ajoberstar.grgit-5.x branch from 204c6f3 to e1b092e Compare April 25, 2024 21:27
@renovate renovate bot force-pushed the renovate/org.ajoberstar.grgit-5.x branch 3 times, most recently from 9c8117d to a384973 Compare May 8, 2024 07:50

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@renovate renovate bot force-pushed the renovate/org.ajoberstar.grgit-5.x branch from a384973 to efe9109 Compare May 8, 2024 08:06
@renovate renovate bot changed the base branch from devel to master May 22, 2024 14:33
@renovate renovate bot changed the title chore(deps): update plugin org.ajoberstar.grgit to v5 chore(deps): update plugin org.ajoberstar.grgit to v5 - autoclosed May 22, 2024
@renovate renovate bot closed this May 22, 2024
@renovate renovate bot deleted the renovate/org.ajoberstar.grgit-5.x branch May 22, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants