Class VaadinBuildFrontendTask
-
- All Implemented Interfaces:
-
kotlin.Comparable,org.gradle.api.Named,org.gradle.api.Task,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.plugins.ExtensionAware,org.gradle.util.Configurable
@CacheableTask() public abstract class VaadinBuildFrontendTask extends DefaultTaskTask that builds the frontend bundle.
It performs the following actions when creating a package:
Update Constants.PACKAGE_JSON file with the com.vaadin.flow.component.dependency.NpmPackage annotations defined in the classpath,
Copy resource files used by flow from
.jarfiles to thenode_modulesfolderInstall dependencies by running
npm installUpdate the FrontendUtils.IMPORTS_NAME file imports with the com.vaadin.flow.component.dependency.JsModule and com.vaadin.flow.component.dependency.JavaScript annotations defined in the classpath,
Update FrontendUtils.VITE_CONFIG file.
Uses Gradle incremental builds feature, i.e. Gradle skips this task if all the inputs (config parameters, classpath, frontend sources) and outputs (production bundle) are up-to-date and have the same values as for previous build.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringCACHED_BUILD_INFO_FILEprivate Booleanenabledprivate final Property<Duration>timeoutprivate final TaskStateInternalstateprivate BooleanimpliesSubProjectsprivate final BooleanhasCustomActions
-
Constructor Summary
Constructors Constructor Description VaadinBuildFrontendTask()
-
Method Summary
Modifier and Type Method Description final UnitvaadinBuildFrontend()-
Methods inherited from class org.gradle.api.internal.AbstractTask
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjects -
Methods inherited from class org.gradle.api.DefaultTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
vaadinBuildFrontend
final Unit vaadinBuildFrontend()
-
-
-
-