Search Gradle plugins

Version 7.2.4 (latest)

Created 13 October 2020.

The Yarn Gradle plugin lets you use Yarn to install Node packages from package.json

Using the plugins DSL:

plugins {
  id "com.liferay.yarn" version "7.2.4"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.liferay:gradle-plugins-node:7.2.4"
  }
}

apply plugin: "com.liferay.yarn"

Using the plugins DSL:

plugins {
  id("com.liferay.yarn") version "7.2.4"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.com.liferay:gradle-plugins-node:7.2.4")
  }
}

apply(plugin = "com.liferay.yarn")

Learn how to apply plugins to subprojects