api / org.gradle.vcs.git / GitVersionControlSpec / getUrl

getUrl

abstract fun getUrl(): URI

The URL for the repository in the specification.

Note: The return value is a URI to avoid exposing the full contract of java.net.URL clients of this interface. Specifically, java.net.URL extends URI to add network operations which are both unsuited for simple data specification and allocate additional memory.