api / org.gradle.api.artifacts / DependencyMetadata / getVersionConstraint

getVersionConstraint

abstract fun getVersionConstraint(): VersionConstraint

Returns the version of the module that is targeted by this dependency or dependency constraint. which usually expresses what API level of the module you are compatible with.

Since
4.5