# setUrl

abstract fun setUrl(url: URI)(source)

Sets the base URL of this repository. This URL is used to find both POMs and artifact files.

#### Since

4.0

#### Parameters

url

The base URL.

abstract fun setUrl(url: Any)(source)

Sets the base URL of this repository. This URL is used to find both POMs and artifact files.

The provided value is evaluated as per uri. This means, for example, you can pass in a `File` object, or a relative path to be evaluated relative to the project directory.

#### Parameters

url

The base URL.