@Incubating interface AuthenticationContainer : PolymorphicDomainObjectContainer<Authentication>
Container for configuring repository authentication schemes of type org.gradle.authentication.Authentication.
abstract fun <U : T> containerWithType(type: Class<U>): NamedDomainObjectContainer<U>
Creates a regular container that wraps the polymorphic container presenting all elements of a specified type. |
|
abstract fun <U : T> create(name: String, type: Class<U>): U
Creates a domain object with the specified name and type, and adds it to the container. abstract fun <U : T> create(name: String, type: Class<U>, configuration: Action<in U>): U
Creates a domain object with the specified name and type, adds it to the container, and configures it with the specified action. |
|
abstract fun <U : T> maybeCreate(name: String, type: Class<U>): U
Looks for an item with the given name and type, creating and adding it to this container if it does not exist. |