api / org.gradle.api.artifacts / Dependency / copy

copy

abstract fun copy(): Dependency

Creates and returns a new dependency with the property values of this one.

Return
The copy. Never returns null.