api / org.gradle.api.artifacts.repositories / MavenArtifactRepository / setArtifactUrls

setArtifactUrls

abstract fun setArtifactUrls(urls: MutableSet<URI>): Unit

Sets the additional URLs to use to find artifact files. Note that these URLs are not used to find POM files.

Parameters

urls - The URLs.

Since
4.0

abstract fun setArtifactUrls(urls: MutableIterable<*>): Unit

Sets the additional URLs to use to find artifact files. Note that these URLs are not used to find POM files.

The provided values are evaluated as per org.gradle.api.Project#uri(Object). This means, for example, you can pass in a File object, or a relative path to be evaluated relative to the project directory.

Parameters

urls - The URLs.