From aa8fdfd5dd1ecc3e3dabd430af439e194bd03f99 Mon Sep 17 00:00:00 2001 From: Ben Liblit Date: Mon, 15 Jan 2024 13:42:24 -0500 Subject: [PATCH] Remove obsolete dependency tweaks We needed each of these dependency tweaks at some point, but everything builds fine now without them. --- .../com/ibm/wala/gradle/java.gradle.kts | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/build-logic/src/main/kotlin/com/ibm/wala/gradle/java.gradle.kts b/build-logic/src/main/kotlin/com/ibm/wala/gradle/java.gradle.kts index 41600ccd2b..7d72aefe7f 100644 --- a/build-logic/src/main/kotlin/com/ibm/wala/gradle/java.gradle.kts +++ b/build-logic/src/main/kotlin/com/ibm/wala/gradle/java.gradle.kts @@ -77,33 +77,6 @@ tasks.withType().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") {