Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


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.47"

	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:

Name Depends On Type Description
gulp<Task> downloadNode, npmInstall ExecuteGulpTask Executes 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 Name Default Value
scriptFile "node_modules/gulp/bin/gulp.js"

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 Name Type Default Value Description
gulpCommand String null The Gulp task to execute.

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

You can’t perform that action at this time.