Class YarnInstallTask
- java.lang.Object
-
- org.gradle.api.internal.AbstractTask
-
- org.gradle.api.DefaultTask
-
- org.siouan.frontendgradleplugin.tasks.YarnInstallTask
-
- All Implemented Interfaces:
java.lang.Comparable<org.gradle.api.Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.plugins.ExtensionAware,org.gradle.api.Task,org.gradle.util.Configurable<org.gradle.api.Task>
public class YarnInstallTask extends org.gradle.api.DefaultTaskTask that downloads and installs a Yarn distribution.
-
-
Constructor Summary
Constructors Constructor Description YarnInstallTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()Executes the task: downloads and installs the distribution.org.gradle.api.provider.Property<org.gradle.api.logging.LogLevel>getLoggingLevel()org.gradle.api.provider.Property<java.lang.String>getYarnDistributionUrl()org.gradle.api.file.DirectoryPropertygetYarnInstallDirectory()org.gradle.api.provider.Property<java.lang.String>getYarnVersion()-
Methods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getRequiredServices, getServices, getSharedResources, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString, usesService
-
-
-
-
Method Detail
-
getLoggingLevel
@Input @Optional public org.gradle.api.provider.Property<org.gradle.api.logging.LogLevel> getLoggingLevel()
-
getYarnVersion
@Input public org.gradle.api.provider.Property<java.lang.String> getYarnVersion()
-
getYarnDistributionUrl
@Input @Optional public org.gradle.api.provider.Property<java.lang.String> getYarnDistributionUrl()
-
getYarnInstallDirectory
@OutputDirectory @Optional public org.gradle.api.file.DirectoryProperty getYarnInstallDirectory()
-
execute
public void execute() throws DistributionInstallerExceptionExecutes the task: downloads and installs the distribution.- Throws:
DistributionInstallerException- If the installer failed.
-
-