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

Exclude dependencies specified in libs-file? #923

Open
brainbytes42 opened this issue Jun 17, 2024 · 0 comments
Open

Exclude dependencies specified in libs-file? #923

brainbytes42 opened this issue Jun 17, 2024 · 0 comments

Comments

@brainbytes42
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant