Gradle Dependencies and Dependency Configurations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 4: Line 4:
{{Internal|Gradle Dependencies and Dependency Configurations|Gradle Dependencies and Dependency Configurations}}
{{Internal|Gradle Dependencies and Dependency Configurations|Gradle Dependencies and Dependency Configurations}}
=Overview=
=Overview=
Dependencies for a project can be managed with [https://docs.gradle.org/current/javadoc/org/gradle/api/Project.html#dependencies-groovy.lang.Closure- Project.dependencies(Closure)], [https://docs.gradle.org/current/javadoc/org/gradle/api/Project.html#getDependencies-- Project.getDependencies()] and the "dependencies" DSL element:
Dependencies for a project can be managed with [https://docs.gradle.org/current/javadoc/org/gradle/api/Project.html#dependencies-groovy.lang.Closure- Project.dependencies(Closure)], [https://docs.gradle.org/current/javadoc/org/gradle/api/Project.html#getDependencies-- Project.getDependencies()] and the [[Gradle Project#Dependencies|"dependencies" build.gradle DSL element]]:
<syntaxhighlight lang='groovy'>
<syntaxhighlight lang='groovy'>
dependencies {
dependencies {
   // configuration closure
   // configuration closure
}
}

Revision as of 00:43, 4 October 2020

Internal

TO DEPLETE

Gradle Dependencies and Dependency Configurations

Overview

Dependencies for a project can be managed with Project.dependencies(Closure), Project.getDependencies() and the "dependencies" build.gradle DSL element: <syntaxhighlight lang='groovy'> dependencies {

 // configuration closure

}