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

MetadataSources

@Incubating interface MetadataSources

Allows configuring the sources of metadata for a specific repository.

Since
4.5

Functions

artifact

abstract fun artifact(): Unit

Indicates that this repository may not contain metadata files, but we can infer it from the presence of an artifact file.

gradleMetadata

abstract fun gradleMetadata(): Unit

Indicates that this repository will contain Gradle metadata.

mavenPom

abstract fun mavenPom(): Unit

Indicates that this repository will contain Maven POM files.