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
}
Problem Statement
When just using the log4j appender but not using Sentry in code, the plugin still adds the sentry artifact to the
implementationconfiguration.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 }