Class HytaleExtension
java.lang.Object
net.janrupf.gradle.hytale.dev.extension.HytaleExtension
The Hytale extension for Gradle projects.
Configures Hytale-specific settings and properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.provider.Property<Boolean> Whether to enable decompiling the server JAR.abstract org.gradle.api.file.RegularFilePropertyThe Hytale assets ZIP file.abstract org.gradle.api.provider.Property<HytaleManifestModel> The Hytale manifest model.The list of manifest modifiers to apply when generating a Hytale manifest.org.gradle.api.NamedDomainObjectContainer<HytaleRunModel> getRuns()abstract org.gradle.api.file.RegularFilePropertyThe Hytale server JAR file.voidmanifest(org.gradle.api.Action<? super HytaleManifestModel> action) Configure the plugin manifest.voidmodifyManifest(org.gradle.api.Action<? super Map<String, Object>> action) Adds a manifest modifier action to be applied when generating a Hytale manifest.voidruns(org.gradle.api.Action<org.gradle.api.NamedDomainObjectContainer<HytaleRunModel>> action) Configure the available run configurations.
-
Constructor Details
-
HytaleExtension
@Inject public HytaleExtension(org.gradle.api.Project project)
-
-
Method Details
-
getServerJar
public abstract org.gradle.api.file.RegularFileProperty getServerJar()The Hytale server JAR file.- Returns:
- the server JAR file property
-
getHytaleAssetsZip
public abstract org.gradle.api.file.RegularFileProperty getHytaleAssetsZip()The Hytale assets ZIP file.- Returns:
- the assets ZIP file property
-
getEnableDecompileServerJar
Whether to enable decompiling the server JAR.- Returns:
- the enable decompile server JAR property
-
getManifest
The Hytale manifest model.- Returns:
- the manifest property
-
getManifestModifiers
-
runs
public void runs(org.gradle.api.Action<org.gradle.api.NamedDomainObjectContainer<HytaleRunModel>> action) Configure the available run configurations.- Parameters:
action- the action to configure the run configurations
-
manifest
Configure the plugin manifest.- Parameters:
action- the action to configure the manifest
-
modifyManifest
-
getRuns
-