Gulp Gradle Plugin

The Gulp Gradle plugin lets you run Gulp tasks as part of your build.

The plugin has been successfully tested with Gradle 4.10.2.


To use the plugin, include it in your build script:

buildscript {
    dependencies {
        classpath group: "com.liferay", name: "com.liferay.gradle.plugins.gulp", version: "2.0.59"

    repositories {
        maven {
            url ""

apply plugin: "com.liferay.gulp"

The Gulp plugin automatically applies the com.liferay.node plugin.


The plugin adds one task rule to your project:

NameDepends OnTypeDescription
gulp<Task>downloadNode, npmInstallExecuteGulpTaskExecutes a named Gulp task.


Tasks of type ExecuteGulpTask extend ExecuteNodeScriptTask, so all its properties and methods, such as args and inheritProxy, are available. They also have the following properties set by default:

Property NameDefault Value

Gulp must be already installed in the node_modules directory of the project; otherwise, it will not be downloaded by the task. In order to ensure Gulp is installed, you can add the Gulp dependency to the project’s package.json file.

Task Properties

Property NameTypeDefault ValueDescription
gulpCommandStringnullThe Gulp task to execute.

It is possible to use Closures and Callables as values for the String properties to defer evaluation until task execution.

« Go Gradle PluginJasper JSPC Gradle Plugin »
Este artigo foi útil?
Utilizadores que acharam útil: 0 de 0