Skip to content

Plugin to make Google's Closure Templates (Soy) easier to use with Maven.

License

Notifications You must be signed in to change notification settings

serviceplanet/closure-templates-toolbox

Repository files navigation

Closure Templates (Soy) Maven Plugin

Plugin to make Google's Closure Templates easier to use with Maven.

For example by default the SoyToJbcSrcCompiler outputs a JAR file which is hard to use with an IDE (such as IntelliJ). It also requires manual intervention to get the JAR into the deliverable (for example via the Maven shade plugin). The soy-to-bytecode goal makes the class files of the SoyToJbcSrcCompiler directly available under target/classes.

Example usage:

<plugin>
    <groupId>nl.serviceplanet.maven</groupId>
    <artifactId>closure-templates-maven-plugin</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <executions>
        <execution>
            <id>soy-to-bytecode</id>
            <goals>
                <goal>soy-to-bytecode</goal>
            </goals>
            <phase>verify</phase>
            <configuration>
                <soySources>${project.basedir}/src/main/resources/template1.soy,${project.basedir}/src/main/resources/template2.soy</soySources>
            </configuration>
        </execution>
    </executions>
</plugin>

About

Plugin to make Google's Closure Templates (Soy) easier to use with Maven.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages