Gradle Dependencies and Dependency Configurations: Difference between revisions
Jump to navigation
Jump to search
m (Ovidiu moved page Gradle Dependencies to Gradle Dependencies and Configurations without leaving a redirect) |
|||
Line 7: | Line 7: | ||
<syntaxhighlight lang='groovy'> | <syntaxhighlight lang='groovy'> | ||
dependencies { | dependencies { | ||
// configuration closure | |||
} | |||
Configurations for a project can be managed with [https://docs.gradle.org/current/javadoc/org/gradle/api/Project.html#configurations-groovy.lang.Closure- Project.configurations(Closure)], [https://docs.gradle.org/current/javadoc/org/gradle/api/Project.html#getConfigurations-- Project.getConfigurations()] and the [[Gradle Project#Dependencies|"configurations" build.gradle DSL element]]: | |||
<syntaxhighlight lang='groovy'> | |||
configurations { | |||
// configuration closure | // configuration closure | ||
} | } |
Revision as of 00:47, 4 October 2020
Internal
TO DEPLETE
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
} Configurations for a project can be managed with Project.configurations(Closure), Project.getConfigurations() and the "configurations" build.gradle DSL element: <syntaxhighlight lang='groovy'> configurations {
// configuration closure
}