Gradle Dependencies and Dependency Configurations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 9: Line 9:
   // configuration closure
   // configuration closure
}
}
</syntaxhighlight>
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]]:
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'>
<syntaxhighlight lang='groovy'>
Line 14: Line 15:
   // configuration closure
   // configuration closure
}
}
</syntaxhighlight>

Revision as of 00:48, 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:

dependencies {
  // configuration closure
}

Configurations for a project can be managed with Project.configurations(Closure), Project.getConfigurations() and the "configurations" build.gradle DSL element:

configurations {
  // configuration closure
}