Package net.kyori.blossom
Interface Variant
- All Superinterfaces:
org.gradle.api.Named
- All Known Implementing Classes:
VariantImpl
@NonExtendable
public interface Variant
extends org.gradle.api.Named
Template variant.
Composed of:
- Name: used to map values from properties file
- Source files: files that will be loaded
- Runtime properties: set in the buildscript, will override anything set in source files
- Since:
- 2.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Named
org.gradle.api.Named.Namer -
Method Summary
Modifier and TypeMethodDescription@NotNull StringgetName()Runtime properties for inserting into templates.@NotNull org.gradle.api.file.ConfigurableFileCollectionData files containing template parameters.default voidproperties(@NotNull org.gradle.api.Action<org.gradle.api.provider.MapProperty<String, Object>> configureAction) Register multiple properties for this variant.
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.gradle.api.Named
-
getPropertyFiles
@InputFiles @NotNull @NotNull org.gradle.api.file.ConfigurableFileCollection getPropertyFiles()Data files containing template parameters.- Returns:
- the data files to read
- Since:
- 2.0.0
-
getProperties
Runtime properties for inserting into templates.- Returns:
- the properties map
- Since:
- 2.0.0
-
properties
default void properties(@NotNull @NotNull org.gradle.api.Action<org.gradle.api.provider.MapProperty<String, Object>> configureAction) Register multiple properties for this variant.- Parameters:
configureAction- action to configure properties- Since:
- 2.0.0
-