component-build-plugin / com.intershop.gradle.component.build.extension.container / LibraryItemContainer

LibraryItemContainer

open class LibraryItemContainer : AContainer

This class provides all properties for the library container extension.

Constructors

<init>

LibraryItemContainer(dependencyHandler: DependencyHandler, parent: ComponentExtension)

provides an empty preconfigured library container

Properties

items

val items: Set<LibraryItem>

This set provides all configured libraries. This list will be completed by the transitive dependencies of the component.

parent

open val parent: ComponentExtension

the parent of this container.

resolveTransitive

var resolveTransitive: Boolean

This property configures the dependency resolution of the configured dependencies during the creation of the descriptor. The descriptor must be complete! The default value is true.

Inherited Properties

defTargetPath

val defTargetPath: String

description

val description: String

a short description of this container for log messages.

targetPath

var targetPath: String

This path describes the installation in the default installation of the component.

Functions

add

fun add(dependency: Any, vararg types: String): LibraryItem

Add a dependency from any possible definition with special type configuration to the library list.

fun add(dependency: Any): LibraryItem
fun add(dependency: Any, action: Action<in LibraryItem>): Unit

Add a dependency from any possible definition a to the configuration.

fun add(libs: Collection<Any>): Unit

Add a list of dependencies to the library list.

Inherited Functions

addTypes

fun addTypes(item: AItem): Unit

Add types to types list from item.