Slackbot
11/25/2022, 10:50 PMephemient
11/25/2022, 11:11 PMClayton Walker
11/25/2022, 11:44 PMabstract class ExampleDependenciesRule: ComponentMetadataRule {
override fun execute(context: ComponentMetadataContext) {
context.details.allVariants {
withDependencies {
removeIf {
it.group == "org.example" && it.name == "using-log4j"
}
add("org.example:using-slf4j")
}
}
}
}
ephemient
11/25/2022, 11:47 PMremoveAll
as it's a kotlin extension that gets inlined as opposed to a Java default method that Gradle will have some problems caching if the lambda gets compiled with invokedynamic, but basically yesClayton Walker
11/25/2022, 11:48 PM