Skip to content

Commit c00deb8

Browse files
bigdazclaude
andcommitted
Fix dependency vulnerabilities in buildscript classpath
Resolves vulnerable transitive dependencies on the plugin buildscript classpath: - Update the Shadow plugin from com.github.johnrengelman.shadow:8.1.1 to com.gradleup.shadow:8.3.6. This pulls plexus-utils up to 4.0.2, clearing alert 25 without a constraint. (Alert 25) - Extend the existing buildscript constraints block to force patched versions of two libraries still pulled in transitively: org.apache.logging.log4j:log4j-core -> 2.25.4 (shadow + github-release) org.apache.tika:tika-core -> 3.2.2 (github-release) Resolves Dependabot alerts 21, 22, 25, 26, 27. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent ddaf9f6 commit c00deb8

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

gradle/libs.versions.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jackson-parameter-names = { group = "com.fasterxml.jackson.module", name = "jack
99
jackson-kotlin = { group = "com.fasterxml.jackson.module", name = "jackson-module-kotlin" }
1010

1111
apache-commons-io = { group = "commons-io", name = "commons-io", version = "2.21.0" }
12+
apache-tika-core = { group = "org.apache.tika", name = "tika-core", version = "3.2.2" }
13+
apache-log4j-core = { group = "org.apache.logging.log4j", name = "log4j-core", version = "2.25.4" }
1214

1315
github-packageurl = { group = "com.github.package-url", name = "packageurl-java", version = "1.5.0" }
1416
okio = { group = "com.squareup.okio", name = "okio", version = "3.17.0" }
@@ -26,6 +28,6 @@ jetbrains-annotations = { group = "org.jetbrains", name = "annotations", version
2628
google-gson = { group = "com.google.code.gson", name = "gson", version = "2.13.2" }
2729

2830
[plugins]
29-
shadow-jar = { id = "com.github.johnrengelman.shadow", version = "8.1.1"}
31+
shadow-jar = { id = "com.gradleup.shadow", version = "8.3.6"}
3032
plugin-publish = { id = "com.gradle.plugin-publish", version = "2.1.0" }
3133
github-release = { id = "com.github.breadmoirai.github-release", version = "2.5.2"}

plugin/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ buildscript {
1212
}
1313
dependencies {
1414
constraints {
15-
// The plugin com.github.breadmoirai.github-release:2.5.2 depends on vulnerable library releases.
15+
// Several plugins on the buildscript classpath (com.github.breadmoirai.github-release:2.5.2,
16+
// com.gradleup.shadow) depend on vulnerable library releases.
1617
// We constrain these to newer, patched versions.
1718
classpath(libs.okio)
1819
classpath(libs.apache.commons.io)
20+
classpath(libs.apache.tika.core)
21+
classpath(libs.apache.log4j.core)
1922
}
2023
}
2124
}

0 commit comments

Comments
 (0)