api / org.gradle.api.artifacts.ivy / IvyExtraInfo

IvyExtraInfo

@Incubating interface IvyExtraInfo

Represents the set of "extra" info elements in the Ivy descriptor. These elements are children of the "ivy" element, but are not defined in the Ivy schema and come from other namespaces.

Functions

asMap

abstract fun asMap(): MutableMap<QName, String>

Returns a map view of the 'extra' info elements such that each key is a javax.xml.namespace.QName representing the namespace and name of the element and each value is the content of the element.

get

abstract fun get(name: String): String

Returns the value of the element with the unique element name. If there are multiple elements with the same element name, in different namespaces, a org.gradle.api.InvalidUserDataException will be thrown.

abstract fun get(namespace: String, name: String): String

Returns the value of the element with the name and namespace provided.

Inheritors

IvyExtraInfoSpec

interface IvyExtraInfoSpec : IvyExtraInfo

Represents a modifiable form of IvyExtraInfo so that "extra" info elements can be configured on an Ivy publication.