Skip to content

Provide a more obvious way to not add sentry artifact #1150

@Vampire

Description

@Vampire

Problem Statement

When just using the log4j appender but not using Sentry in code, the plugin still adds the sentry artifact to the implementation configuration.

If you then for example have the dependency analysis gradle plugin in action, it of course complains that there is an unused dependency that should be removed.

As far as I have seen there is no obvious way to not do it while still enriching the other modules.

By reading the sources I found that I can do implementation(platform(libs.sentry.bom)) which - if it contains a version - does exactly skip this artifact adding, but this is not too obvious.

Solution Brainstorm

sentry {
    autoInstallation.sdk = false
}

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions