Skip to content

Commit

Permalink
Remove obsolete dependency tweaks
Browse files Browse the repository at this point in the history
We needed each of these dependency tweaks at some point, but
everything builds fine now without them.
  • Loading branch information
liblit committed Jan 15, 2024
1 parent f908bdd commit aa8fdfd
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions build-logic/src/main/kotlin/com/ibm/wala/gradle/java.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -77,33 +77,6 @@ tasks.withType<JavaCompile>().configureEach {
}
}

configurations {
all {
resolutionStrategy.dependencySubstitution {
substitute(module("org.hamcrest:hamcrest-core"))
.using(
module(
rootProject.versionCatalogs
.named("libs")
.findLibrary("hamcrest")
.get()
.get()
.toString()))
.because(
"junit depends on hamcrest-core, but all hamcrest-core classes have been incorporated into hamcrest")
}
}

"implementation" {
// See https://github.com/wala/WALA/issues/823. This group was renamed to
// net.java.dev.jna. The com.sun.jna dependency is only pulled in from
// com.ibm.wala.ide.* projects. Since we only try to compile those projects from
// Gradle, but not run them, excluding the group as a dependence is a reasonable
// solution.
exclude(group = "com.sun.jna")
}
}

eclipse.synchronizationTasks("processTestResources")

tasks.named<Test>("test") {
Expand Down

0 comments on commit aa8fdfd

Please sign in to comment.