This is an example of a bare metal Jenkins plugin written in groovy, using Gradle to compile source.
Usage: sh gradlew jpi sh gradlew jar sh gradlew clean
Groovy: 2.3.6 Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013 JVM: 1.7.0_71 (Oracle Corporation 24.71-b01) OS: Mac OS X 10.10 x86_64