Skip to content

Commit 95ffe2e

Browse files
authored
build(deps)!: JGIT 7.1 (Requires Java 17) (#67). (#68)
1 parent 4635ac3 commit 95ffe2e

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed

.github/workflows/gradle-push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ jobs:
3838
- name: Set up JDK
3939
uses: actions/setup-java@v4
4040
with:
41-
java-version: 8
42-
distribution: adopt
41+
java-version: 17
42+
distribution: 'temurin'
4343

4444
- uses: actions/cache@v4
4545
with:

.github/workflows/pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
- name: Set up JDK
1919
uses: actions/setup-java@v4
2020
with:
21-
java-version: 8
22-
distribution: adopt
21+
java-version: 17
22+
distribution: 'temurin'
2323

2424
- uses: actions/cache@v4
2525
with:

build.gradle.kts

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,14 @@ repositories {
2222
}
2323

2424
dependencies {
25-
implementation(kotlin("stdlib-jdk8"))
25+
implementation(kotlin("stdlib"))
26+
implementation("org.eclipse.jgit:org.eclipse.jgit:7.1.0.202411261347-r")
27+
implementation("org.eclipse.jgit:org.eclipse.jgit.gpg.bc:7.1.0.202411261347-r")
28+
implementation("org.slf4j:slf4j-api:1.7.36")
29+
2630
testImplementation(kotlin("test-junit5"))
2731
testImplementation("org.junit.jupiter:junit-jupiter-params")
28-
testImplementation("org.assertj:assertj-core:3.26.3")
29-
30-
implementation("org.eclipse.jgit:org.eclipse.jgit:5.13.3.202401111512-r")
31-
implementation("org.eclipse.jgit:org.eclipse.jgit.gpg.bc:5.13.3.202401111512-r") {
32-
exclude(group = "org.bouncycastle")
33-
}
34-
implementation("org.bouncycastle:bcpg-jdk18on:1.79")
35-
implementation("org.bouncycastle:bcutil-jdk18on:1.79")
36-
implementation("org.bouncycastle:bcpkix-jdk18on:1.79")
37-
implementation("org.slf4j:slf4j-api:1.7.36")
32+
testImplementation("org.assertj:assertj-core:3.27.2")
3833
}
3934

4035
gradlePlugin {

src/main/kotlin/git/semver/plugin/scm/GitProvider.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import org.eclipse.jgit.revwalk.RevWalk
1313
import org.eclipse.jgit.util.FS
1414
import org.slf4j.LoggerFactory
1515
import java.io.File
16+
import java.util.*
1617

1718
internal class GitProvider(private val settings: SemverSettings) {
1819
companion object {
@@ -131,7 +132,7 @@ internal class GitProvider(private val settings: SemverSettings) {
131132
revWalk.parseHeaders(parent)
132133
yield(getCommit(parent, revWalk))
133134
}
134-
}, commit.authorIdent.name, commit.authorIdent.emailAddress, commit.authorIdent.`when`)
135+
}, commit.authorIdent.name, commit.authorIdent.emailAddress, Date.from(commit.authorIdent.whenAsInstant))
135136
}
136137

137138
internal fun checkDirty(noDirtyCheck: Boolean, isClean: Boolean) {

0 commit comments

Comments
 (0)