|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
org.gradle.api.Namedorg.gradle.api.publish.Publication
org.gradle.api.publish.ivy.IvyPublication
@Incubating @HasInternalProtocol public interface IvyPublication extends Publication
An IvyPublication is the representation/configuration of how Gradle should publish something in Ivy format.
The Ivy module identifying attributes of the publication are mapped to:
The ability to add multiple publications and finely configure publications will be added in future Gradle versions.
Given the following…
apply plugin: 'ivy-publish' publishing { repositories { ivy { url "http://my.org/repo1" } ivy { name "other" url "http://my.org/repo2" } } }The following tasks will be created automatically by the plugin:
apply plugin: 'ivy-publish' generateIvyModuleDescriptor { destination = file('generated-ivy.xml') // Override the default file that will contain the descriptor }
Method Summary | |
---|---|
void
|
descriptor(Action configure)
Configures the descriptor that will be published. |
IvyModuleDescriptor
|
getDescriptor()
The module descriptor that will be published. |
Methods inherited from interface Named | |
---|---|
getName |
Method Detail |
---|
public void descriptor(Action configure)
The descriptor XML can be modified by using the IvyModuleDescriptor.withXml method.
configure
- The configuration action.
public IvyModuleDescriptor getDescriptor()
Gradle API 1.4