Skip to content

Commit 869ecb2

Browse files
Remove jgit hack
The nebula-release-plugin does not use jgit/grgit anymore but it uses the git cli instead that eliminates the need of this hack.
1 parent 8ff3369 commit 869ecb2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

build.gradle

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ buildscript {
3333

3434
// Hacks because of Antora's clone/checkout/worktrees behavior
3535
// Antora uses shallow-clone and worktrees to check out branches/tags.
36-
// The nebula release, project, and info plugins use jgit to fetch git-related info.
37-
// Unfortunately jgit does not support worktrees: https://bugs.eclipse.org/bugs/show_bug.cgi?id=477475
38-
// TODO: remove these hacks once jgit supports worktrees (nebula upgrades) and/or Antora supports full-clone
3936
if (project.hasProperty('antora')) {
4037
'git fetch --unshallow --all --tags'.execute().text // Antora shallow-clones so there is no history (we need commit history to find the last tag in the tree)
4138
String ref = 'git rev-parse --abbrev-ref HEAD'.execute().text.trim()
@@ -46,8 +43,6 @@ if (project.hasProperty('antora')) {
4643
ext['release.version'] = tag.substring(1)
4744
}
4845
}
49-
// We need to tell the location of the .git folder since jgit does not support worktrees
50-
ext['git.root'] = 'git rev-parse --path-format=absolute --git-common-dir'.execute().text.trim()
5146
}
5247

5348
// TODO: remove this hack, see: https://github.com/nebula-plugins/nebula-release-plugin/issues/213

0 commit comments

Comments
 (0)