Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle: What is the difference between providedCompile and providedRuntime

Tags:

gradle

Gradle doc says:

"The War plugin adds two dependency configurations: providedCompile and providedRuntime. Those configurations have the same scope as the respective compile and runtime configurations, except that they are not added to the WAR archive."

What is the difference between providedCompile and providedRuntime?

like image 655
Denis Avatar asked Sep 07 '25 19:09

Denis


1 Answers

providedCompile is visible when classes in your project are compiled (compile extends providedCompile). providedRuntime is extended by runtime and thus also by testRuntime but it is not part of compilation classpath.

like image 184
Radim Avatar answered Sep 10 '25 09:09

Radim