Class GenerateHostTask

java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
io.github.bud127.modulecomposer.plugin.GenerateHostTask
All Implemented Interfaces:
Comparable<org.gradle.api.Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.TaskInternal, org.gradle.api.Named, org.gradle.api.plugins.ExtensionAware, org.gradle.api.Task, org.gradle.util.Configurable<org.gradle.api.Task>

public abstract class GenerateHostTask extends org.gradle.api.DefaultTask
Generates the temporary application host used for composed multi-module runs and builds.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.gradle.api.Named

    org.gradle.api.Named.Namer
  • Field Summary

    Fields inherited from interface org.gradle.api.Task

    TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Generates the host project by delegating to the selected framework adapter.
    abstract org.gradle.api.provider.Property<String>
     
    abstract org.gradle.api.provider.Property<String>
    Application name used by the generated host and final bundle.
    abstract org.gradle.api.provider.Property<String>
     
    abstract org.gradle.api.provider.ListProperty<String>
    Framework configuration classes imported by the generated host.
    abstract org.gradle.api.provider.Property<String>
     
    abstract org.gradle.api.provider.Property<Integer>
     
    abstract org.gradle.api.provider.Property<String>
     
    abstract org.gradle.api.provider.Property<Integer>
     
    abstract org.gradle.api.provider.ListProperty<String>
    Absolute paths to module or shared-library JAR files consumed by the host.
    abstract org.gradle.api.provider.Property<String>
    Optional distribution preset name used for the current composition.
    abstract org.gradle.api.provider.Property<String>
     
    abstract org.gradle.api.provider.MapProperty<String,String>
    Framework-specific options passed to the selected framework adapter.
    abstract org.gradle.api.file.DirectoryProperty
    Directory where the generated host project is written.
    abstract org.gradle.api.provider.Property<Integer>
    Java version used by the generated host build.
    abstract org.gradle.api.provider.ListProperty<String>
     
    abstract org.gradle.api.provider.ListProperty<String>
    Logical module names included in the generated host.
    abstract org.gradle.api.provider.ListProperty<String>
     
    abstract org.gradle.api.provider.ListProperty<String>
     
    abstract org.gradle.api.provider.Property<Boolean>
     
    abstract org.gradle.api.provider.Property<Integer>
     
    abstract org.gradle.api.provider.Property<String>
     
    abstract org.gradle.api.provider.Property<String>
     
    abstract org.gradle.api.provider.ListProperty<String>
     
    abstract org.gradle.api.provider.ListProperty<String>
     

    Methods inherited from class org.gradle.api.DefaultTask

    compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService

    Methods inherited from class org.gradle.api.internal.AbstractTask

    acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjects

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.gradle.api.Task

    doNotTrackState, notCompatibleWithConfigurationCache
  • Constructor Details

    • GenerateHostTask

      public GenerateHostTask()
  • Method Details

    • getHostDirectory

      @OutputDirectory public abstract org.gradle.api.file.DirectoryProperty getHostDirectory()
      Directory where the generated host project is written.
      Returns:
      generated host directory
    • getDependencyJarPaths

      @Input public abstract org.gradle.api.provider.ListProperty<String> getDependencyJarPaths()
      Absolute paths to module or shared-library JAR files consumed by the host.
      Returns:
      dependency JAR paths
    • getConfigurationClasses

      @Input public abstract org.gradle.api.provider.ListProperty<String> getConfigurationClasses()
      Framework configuration classes imported by the generated host.
      Returns:
      configuration class names
    • getModuleNames

      @Input public abstract org.gradle.api.provider.ListProperty<String> getModuleNames()
      Logical module names included in the generated host.
      Returns:
      selected module names
    • getDistribution

      @Input public abstract org.gradle.api.provider.Property<String> getDistribution()
      Optional distribution preset name used for the current composition.
      Returns:
      distribution name
    • getApplicationName

      @Input public abstract org.gradle.api.provider.Property<String> getApplicationName()
      Application name used by the generated host and final bundle.
      Returns:
      application name
    • getJavaVersion

      @Input public abstract org.gradle.api.provider.Property<Integer> getJavaVersion()
      Java version used by the generated host build.
      Returns:
      Java language version
    • getFrameworkOptions

      @Input public abstract org.gradle.api.provider.MapProperty<String,String> getFrameworkOptions()
      Framework-specific options passed to the selected framework adapter.
      Returns:
      framework option map
    • getAdapterClassName

      @Input public abstract org.gradle.api.provider.Property<String> getAdapterClassName()
    • getFramework

      @Input public abstract org.gradle.api.provider.Property<String> getFramework()
    • getSelectionMode

      @Input public abstract org.gradle.api.provider.Property<String> getSelectionMode()
    • getModuleProjectPaths

      @Input public abstract org.gradle.api.provider.ListProperty<String> getModuleProjectPaths()
    • getModuleConfigurationClasses

      @Input public abstract org.gradle.api.provider.ListProperty<String> getModuleConfigurationClasses()
    • getStandaloneRunTasks

      @Input public abstract org.gradle.api.provider.ListProperty<String> getStandaloneRunTasks()
    • getStandaloneBuildTasks

      @Input public abstract org.gradle.api.provider.ListProperty<String> getStandaloneBuildTasks()
    • getPlainJarTasks

      @Input public abstract org.gradle.api.provider.ListProperty<String> getPlainJarTasks()
    • getRuntimePort

      @Input @Optional public abstract org.gradle.api.provider.Property<Integer> getRuntimePort()
    • getRuntimeProfile

      @Input @Optional public abstract org.gradle.api.provider.Property<String> getRuntimeProfile()
    • getRuntimeDebug

      @Input public abstract org.gradle.api.provider.Property<Boolean> getRuntimeDebug()
    • getArtifactFileName

      @Input @Optional public abstract org.gradle.api.provider.Property<String> getArtifactFileName()
    • getContainerImage

      @Input @Optional public abstract org.gradle.api.provider.Property<String> getContainerImage()
    • getContainerBaseImage

      @Input @Optional public abstract org.gradle.api.provider.Property<String> getContainerBaseImage()
    • getContainerHostPort

      @Input @Optional public abstract org.gradle.api.provider.Property<Integer> getContainerHostPort()
    • getContainerPort

      @Input @Optional public abstract org.gradle.api.provider.Property<Integer> getContainerPort()
    • generate

      public void generate() throws IOException
      Generates the host project by delegating to the selected framework adapter.
      Throws:
      IOException - if host files cannot be written