So my understanding (or rather IIRC), in order to ...
# community-support
c
So my understanding (or rather IIRC), in order to do this
spring-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
Copy code
modules {
    module("org.springframework.boot:spring-boot-starter-logging") {
      replacedBy(
        "org.springframework.boot:spring-boot-starter-log4j2",
        "Use Log4j2 instead of Logback",
      )
    }
  }
v
I don't think so. IIRC it just says "if the module is requested, replace it by that module". So you can probably just do it always in your plugin and it shouldn't hurt either way.
c
I guess you're right, why do I remember this differently...
v
🤷‍♂️
c
I expect you to read my brain
including parts I can't access,
v
🤷‍♂️
That's what your brain said
😆 1