Skip to content

Commit c8d86c2

Browse files
committed
Resolve Dependabot alerts caused by JReleaser
1 parent 37d102a commit c8d86c2

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
@@ -8,19 +8,12 @@ plugins {
88
dependencies {
99
implementation("junitbuild.base:dsl-extensions")
1010
implementation(libs.plugins.jreleaser.markerCoordinates)
11-
}
12-
13-
configurations.configureEach {
14-
resolutionStrategy {
15-
eachDependency {
16-
// Workaround for CVE-2025-4949
17-
if (requested.name == "org.eclipse.jgit") {
18-
useVersion("6.10.1.202505221210-r")
19-
}
20-
// Workaround for CVE-2020-36843
21-
if (requested.name == "sshj") {
22-
useVersion("0.40.0")
23-
}
11+
constraints {
12+
implementation("com.hierynomus:sshj:0.40.0") {
13+
because("Workaround for CVE-2020-36843")
14+
}
15+
implementation("org.eclipse.jgit:org.eclipse.jgit:6.10.1.202505221210-r") {
16+
because("Workaround for CVE-2025-4949")
2417
}
2518
}
2619
}

0 commit comments

Comments
 (0)