@Incubating public interface JvmPluginExtension
Modifier and Type | Method | Description |
---|---|---|
void |
createJvmVariant(String name,
Action<? super JvmVariantBuilder> configuration) |
Creates a generic "JVM variant", which implies creation of an underlying source set,
compile tasks, jar tasks, possibly javadocs and sources jars and allows configuring if such
a component has to be published externally.
|
Configuration |
createOutgoingElements(String name,
Action<? super OutgoingElementsBuilder> configuration) |
Creates an outgoing configuration and configures it with reasonable defaults.
|
Configuration |
createResolvableConfiguration(String name,
Action<? super ResolvableConfigurationBuilder> action) |
Creates a configuration which can be used to resolve dependencies for the JVM
ecosystem.
|
JvmEcosystemUtilities |
getUtilities() |
Provides access to the several handy JVM related utilities.
|
JvmEcosystemUtilities getUtilities()
Configuration createOutgoingElements(String name, Action<? super OutgoingElementsBuilder> configuration)
name
- the name of the outgoing configurtionconfiguration
- the configuration builder, used to describe what the configuration is used forConfiguration createResolvableConfiguration(String name, Action<? super ResolvableConfigurationBuilder> action)
name
- the name of the configurationaction
- the configuration of the resolvable configurationvoid createJvmVariant(String name, Action<? super JvmVariantBuilder> configuration)
name
- the name of the component to createconfiguration
- the configuration for the component to be created