Skip to content

Commit

Permalink
Remove unnecessary runtime dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
chadlwilson committed Jun 30, 2023
1 parent 75547a7 commit d8c4937
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ gocdPlugin {

prerelease = !"No".equalsIgnoreCase(System.getenv('PRERELEASE'))
assetsToRelease = [project.tasks.findByName('jar')]

licenseReport {
excludes = ['com.google.guava:guava-parent']
}
}

version = gocdPlugin.fullVersion(project)
Expand Down Expand Up @@ -71,6 +75,20 @@ dependencies {
implementation group: 'com.microsoft.azure', name: 'azure', version: '1.41.4'
implementation group: 'org.freemarker', name: 'freemarker', version: '2.3.32'

components {
// workaround for Guava metadata declaring dependencies that are not needed at runtime
// see https://github.com/google/guava/pull/6606
withModule('com.google.guava:guava', { details ->
details.allVariants {
withDependencies {
removeAll {
it.group in [ "com.google.code.findbugs", "org.checkerframework", "com.google.errorprone" ]
}
}
}
})
}

testImplementation platform('org.junit:junit-bom:5.9.3')
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-params'
Expand Down

0 comments on commit d8c4937

Please sign in to comment.