asDeclaration
suspend fun ConfiguredDependency.asDeclaration(project: HasDependencyDeclarations): Pair<DependencyDeclaration, DependencyDeclaration?>(source)
Creates a new DependencyDeclaration which can be added to a build file, potentially using a similar existing declaration as a template.
Return
a Pair where the first declaration is the newly created one, and the second is the pre-existing template, or null if a template was not used.
Parameters
project