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

artifactPattern

abstract fun artifactPattern(pattern: String): Unit

Adds an independent pattern that will be used to locate artifact files in this repository. This pattern will be used to locate ivy files as well, unless a specific ivy pattern is supplied via #ivyPattern(String). If this pattern is not a fully-qualified URL, it will be interpreted as a file relative to the project directory. It is not interpreted relative the URL specified in #setUrl(Object). Patterns added in this way will be in addition to any layout-based patterns added via #setUrl(Object).

Parameters

pattern - The artifact pattern.