shevek / gradle-velocity-plugin

A gradle plugin for the Velocity preprocessor.
Apache License 2.0
10 stars 5 forks source link

Introduction

This is a gradle plugin which supports Velocity preprocessing of source files.

Usage:

To apply a default configuration which preprocesses src/main/velocity into build/generated-sources/velocity:

buildscript {
    dependencies {
        classpath 'org.anarres.gradle:gradle-velocity-plugin:[1.0.0,)'
    }
}

apply plugin: 'velocity'

velocity {
    includeDir ...

    context {
        // Configure a HashMap with context values.
    }
}

For more advanced usage:

task('customVpp', type: VelocityTask) {
    // ...
}

API Documentation

The JavaDoc API is also available.