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 -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate()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>Framework-specific options passed to the selected framework adapter.abstract org.gradle.api.file.DirectoryPropertyDirectory 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, usesServiceMethods 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, setImpliesSubProjectsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
Absolute paths to module or shared-library JAR files consumed by the host.- Returns:
- dependency JAR paths
-
getConfigurationClasses
Framework configuration classes imported by the generated host.- Returns:
- configuration class names
-
getModuleNames
Logical module names included in the generated host.- Returns:
- selected module names
-
getDistribution
Optional distribution preset name used for the current composition.- Returns:
- distribution name
-
getApplicationName
Application name used by the generated host and final bundle.- Returns:
- application name
-
getJavaVersion
Java version used by the generated host build.- Returns:
- Java language version
-
getFrameworkOptions
Framework-specific options passed to the selected framework adapter.- Returns:
- framework option map
-
getAdapterClassName
-
getFramework
-
getSelectionMode
-
getModuleProjectPaths
-
getModuleConfigurationClasses
-
getStandaloneRunTasks
-
getStandaloneBuildTasks
-
getPlainJarTasks
-
getRuntimePort
-
getRuntimeProfile
-
getRuntimeDebug
-
getArtifactFileName
-
getContainerImage
-
getContainerBaseImage
-
getContainerHostPort
-
getContainerPort
-
generate
Generates the host project by delegating to the selected framework adapter.- Throws:
IOException- if host files cannot be written
-