gradle-velocity-plugin is an open source plugin for the Gradle project designed to support Velocity preprocessing of all source files on any operating system where the Java runtime environment is installed.
In other words, gradle-velocity-plugin integrates Apache’s Velocity template engine intro Gradle. To use this plugin, you’ll need to create a default configuration that will preprocess the src/main/velocity directory into build/generated-sources/velocity.
Mandatory usage example
To use this plugin, download the latest version from Softoware, save it on your computer and extract the archive. Here’s a basic usage example...
buildscript {
dependencies {
compile 'org.anarres.gradle:gradle-velocity-plugin:1.0.0'
}
}
apply plugin: 'velocity'
velocity {
context {
// Configure a HashMap with context values.
}
}
...as well as a more advanced usage example...
task('customVpp', type: VelocityTask) {
// ...
}
You should read the project’s API documentation located at http://shevek.github.io/gradle-velocity-plugin/docs/javadoc/ for details about its functionality and more usage examples.
Under the hood, supported OSes and availability
The program is written entirely in the Java programming language and supports the latest versions of Gradle, which means that it should run on any operating system where both Gradle and the Java Runtime Environment (JRE) are available.
At the moment, it has been successfully tested with several distributions of Linux, on both 32-bit (x86) and 64-bit (x86_64) instruction set architectures. It is available for download as a universal sources archive, allowing you to optimize the software for a specific platform and OS.
Requirements:
- Java 2 Standard Edition Runtime Environment
- Gradle
Comments not found