compileOnly vs providedCompile


(Mike Conner) #1

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?


(Benjamin Muschko) #2

Hi Mike,

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



(Mike Conner) #3

Added as #1171