Search Gradle plugins

com.liferay.soy

Owner: Liferay

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

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

Version 3.1.6

3.1.6

Created 11 June 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.6"
}

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.6")
  }
}

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

Using the plugins DSL:

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

Using legacy plugin application:

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

apply plugin: "com.liferay.soy"

Learn how to apply plugins to subprojects