compileOnly vs providedCompile

issue-1171

(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?

Thanks!


(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?

Thanks,

Ben


(Mike Conner) #3

Added as #1171