-
-
Notifications
You must be signed in to change notification settings - Fork 423
Support excluding type-safe dependency accessors from dendencies #923
Copy link
Copy link
Closed
Labels
Description
Shadow Version
8.1.1
Gradle Version
8.6
Expected Behavior
I'm using gradle/libs to share dependencies in my multi-project-build (see https://docs.gradle.org/current/userguide/platforms.html).
I'd like to exclude some dependencies for some sub-projects (see https://imperceptiblethoughts.com/shadow/configuration/dependencies/#filtering-dependencies)...
Actual Behavior
... but for example exclude(dependency(libs.log4j.api)) raises an error: org.gradle.internal.typeconversion.UnsupportedNotationException: Cannot convert the provided notation to an object of type Dependency: map(valueof(DependencyValueSource)).
According to the libs-documentation (first link above), the call of libs.log4j.api should perform as if it was the plain string-dependency, but obviously, it doesn't.
Any ideas on this? Thanks!
Reactions are currently unavailable