Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A gradle plugin for the Velocity preprocessor.
Java HTML
Branch: master

README.md

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.

Something went wrong with that request. Please try again.