api / org.gradle.api.artifacts.repositories / IvyArtifactRepository / setUrl

setUrl

abstract fun setUrl(url: URI): Unit

Sets the base URL of this repository.

Parameters

url - The base URL.

Since
4.0

abstract fun setUrl(url: Any): Unit

Sets the base URL of this repository. The provided value is evaluated as per org.gradle.api.Project#uri(Object). This means, for example, you can pass in a File object or a relative path which is evaluated relative to the project directory. File are resolved based on the supplied URL and the configured #layout(String, Closure) for this repository.

Parameters

url - The base URL.