Search Gradle plugins

com.liferay.soy

The Soy Gradle plugin lets you compile Closure Templates into JavaScript functions. It also lets you use a custom localization mechanism in the generated .soy.js files by replacing "goog.getMsg" definitions with a different function call (e.g., "Liferay.Language.get").

https://github.com/liferay/liferay-portal/tree/master/modules/sdk/gradle-plugins-soy

Version 3.1.7

Created 16 November 2018.

The Soy Gradle plugin lets you compile Closure Templates into JavaScript functions. It also lets you use a custom localization mechanism in the generated .soy.js files by replacing "goog.getMsg" definitions with a different function call (e.g., "Liferay.Language.get").

Using the plugins DSL:

plugins {
  id "com.liferay.soy" version "3.1.7"
}

Using legacy plugin application:

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

apply plugin: "com.liferay.soy"

Using the plugins DSL:

plugins {
  id("com.liferay.soy") version "3.1.7"
}

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects