Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,26 @@ repositories {
def buildInfoVersion = '2.43.9'
def jacksonVersion = '2.21.7'

// Libraries that this build declares directly at fixed versions. Other modules request older, vulnerable versions of
// them, which Gradle already resolves to the declared ones. Removing those requests changes no jar, and keeps the old
// versions out of the dependency tree that the release audit scans.
def librariesDeclaredHere = ['com.fasterxml.jackson.core:jackson-core', 'com.fasterxml.jackson.core:jackson-databind',
'commons-io:commons-io', 'org.apache.commons:commons-lang3']
dependencies.components.all {
allVariants {
withDependencies {
removeAll { it.group + ":" + it.name in librariesDeclaredHere }
}
}
}

dependencies {
implementation group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-yaml', version: jacksonVersion
implementation group: 'org.jfrog.buildinfo', name: 'build-info-extractor-npm', version: buildInfoVersion
implementation group: 'org.jfrog.buildinfo', name: 'build-info-extractor-go', version: buildInfoVersion
implementation group: 'org.jfrog.buildinfo', name: 'build-info-client', version: buildInfoVersion
implementation group: 'org.jfrog.buildinfo', name: 'build-info-api', version: buildInfoVersion
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: jacksonVersion
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: jacksonVersion
implementation(group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.13') {
exclude group: 'commons-codec', module: 'commons-codec'
Expand Down
Loading