compileOnly vs providedCompile

The doc for compileOnly states “Compile time only dependencies, not used at runtime”, while providedCompile says "…except that they are not added to the WAR archive. " , and this blog post says that it is a “similar capability”. In the case of a war, are they effectively the same, or should we continue to use providedCompile for wars, and compileOnly elsewhere? If they are the same, will providedCompile eventually be deprecated?

Thanks!

1 Like

Hi Mike,

That’s a valid concern and should be addressed. Would you mind opening up an issue for this on GitHub?

Thanks,

Ben

Added as #1171

1 Like