api / org.gradle.api.publish.ivy / IvyPublication / configurations

configurations

abstract fun configurations(config: Action<in IvyConfigurationContainer>): Unit

Defines some IvyConfigurations that should be included in the published ivy module descriptor file. The following example demonstrates how to add a "testCompile" configuration, and a "testRuntime" configuration that extends it.

 apply plugin: "java" apply plugin: "ivy-publish" publishing { publications { ivy(IvyPublication) { configurations { testCompile {} testRuntime { extend "testCompile" } } } } } 

Parameters

config - An action or closure to configure the values of the constructed IvyConfiguration.