addDependency
fun HasDependencyDeclarations.addDependency(configuredDependency: ConfiguredDependency, newDeclaration: DependencyDeclaration, existingMarkerDeclaration: DependencyDeclaration? = null)(source)
Receiver
the project to which we're adding a dependency
Since
0.12.0
Parameters
configuredDependency
the dependency model being added
newDeclaration
the text to be added to the project's build file
existingMarkerDeclaration
if not null, the new declaration will be added above or beyond this declaration. Of all declarations in the dependencies { ... }
block, this declaration should be closest to the desired location of the new declaration.