Class HytaleExtension

java.lang.Object
net.janrupf.gradle.hytale.dev.extension.HytaleExtension

public abstract class HytaleExtension extends Object
The Hytale extension for Gradle projects.

Configures Hytale-specific settings and properties.

  • 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

      public abstract org.gradle.api.provider.Property<Boolean> getEnableDecompileServerJar()
      Whether to enable decompiling the server JAR.
      Returns:
      the enable decompile server JAR property
    • getManifest

      public abstract org.gradle.api.provider.Property<HytaleManifestModel> getManifest()
      The Hytale manifest model.
      Returns:
      the manifest property
    • getManifestModifiers

      public abstract org.gradle.api.provider.ListProperty<org.gradle.api.Action<? super Map<String,Object>>> getManifestModifiers()
      The list of manifest modifiers to apply when generating a Hytale manifest.
      Returns:
      the list of manifest modifiers
    • 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

      public void manifest(org.gradle.api.Action<? super HytaleManifestModel> action)
      Configure the plugin manifest.
      Parameters:
      action - the action to configure the manifest
    • modifyManifest

      public void modifyManifest(org.gradle.api.Action<? super Map<String,Object>> action)
      Adds a manifest modifier action to be applied when generating a Hytale manifest.
      Parameters:
      action - the manifest modifier action
    • getRuns

      public org.gradle.api.NamedDomainObjectContainer<HytaleRunModel> getRuns()