Caleb Cushing
03/11/2024, 9:49 PMspring-boot-starter-logging
must already be a dependency (meaning this code must come after). Is there a way I can do this in a plugin that will only add it if that's been added? or am I just wrong and I could add it anywhere in my dependencies? I don't want to add starter-logging everywhere, but I also don't want to do this in every single build.gradle
modules {
module("org.springframework.boot:spring-boot-starter-logging") {
replacedBy(
"org.springframework.boot:spring-boot-starter-log4j2",
"Use Log4j2 instead of Logback",
)
}
}
Vampire
03/11/2024, 10:00 PMCaleb Cushing
03/11/2024, 10:07 PMVampire
03/11/2024, 10:11 PMCaleb Cushing
03/11/2024, 10:11 PMCaleb Cushing
03/11/2024, 10:12 PMVampire
03/11/2024, 10:12 PMVampire
03/11/2024, 10:12 PM