Skip to content

Support excluding type-safe dependency accessors from dendencies #923

@brainbytes42

Description

@brainbytes42

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions