Caleb Cushing
12/20/2024, 6:46 PMVampire
12/20/2024, 11:00 PMprovided
would be compileOnly
. But that his nothing to do with slf4j
. On that you just depend.Caleb Cushing
12/20/2024, 11:00 PMCaleb Cushing
12/20/2024, 11:01 PMCaleb Cushing
12/20/2024, 11:02 PMVampire
12/20/2024, 11:02 PMcompileOnly
though. And slf4j is not supposed to be provided.Caleb Cushing
12/20/2024, 11:02 PMVampire
12/20/2024, 11:05 PMcompikeOnly
, where is the problem?Caleb Cushing
12/24/2024, 4:06 AMVampire
12/24/2024, 12:04 PMwell... you do know that "provided" means the dependency is required and not optional.
Yes
where-as compileOnly means it's not required at runtime.
No You do the same error Maven does. They mix the recipe to build the software with the recipe to consume the software. Your statement does the same. To build the software a "provided" lib is only needed at compile time, so
compileOnly
. The "provided" in the pom is just a documenting comment for the consumer telling "you need to provide this at runtime".