The specific use case is regarding third-party libraries that depend on the older log4j 1.x like log4j:log4j:1.2.17 which is EOL'd some years ago. Apache provides the newer log4j 2.x library like org.apache.logging.log4j:log4j-1.2-api:2.13.3. I understand I can use excludeDependencies to omit log4j:log4j or dependencyOverrides to change the version of a dependency. Since org.apache.logging.log4j:log4j-1.2-api:2.13.3 is provided to implement the log4j 1.x API, I'm hoping I can write a rule "like":
SBT: if a transitive dependency is found for
log4j:log4j:1.2.17, instead bring inorg.apache.logging.log4j:log4j-1.2-api:2.13.3