Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove obsolete dependency tweaks #1362

Merged
merged 2 commits into from
Jan 15, 2024
Merged
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
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
Loading