Skip to content

Commit e9d7fbb

Browse files
committed
Resolve Dependabot alerts caused by JReleaser
(cherry picked from commit c8d86c2)
1 parent 87bf65a commit e9d7fbb

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

gradle/plugins/publishing/build.gradle.kts

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,12 @@ plugins {
77
dependencies {
88
implementation("junitbuild.base:dsl-extensions")
99
implementation(libs.plugins.jreleaser.markerCoordinates)
10-
}
11-
12-
configurations.configureEach {
13-
resolutionStrategy {
14-
eachDependency {
15-
// Workaround for CVE-2025-4949
16-
if (requested.name == "org.eclipse.jgit") {
17-
useVersion("6.10.1.202505221210-r")
18-
}
19-
// Workaround for CVE-2020-36843
20-
if (requested.name == "sshj") {
21-
useVersion("0.40.0")
22-
}
10+
constraints {
11+
implementation("com.hierynomus:sshj:0.40.0") {
12+
because("Workaround for CVE-2020-36843")
13+
}
14+
implementation("org.eclipse.jgit:org.eclipse.jgit:6.10.1.202505221210-r") {
15+
because("Workaround for CVE-2025-4949")
2316
}
2417
}
2518
}

0 commit comments

Comments
 (0)