Gradle 2.1 support

Reopening pull request [#23](https://github.com/jenkinsci/gradle-jpi-plugin/pull/23)

Tested with gradle 2.1 and gradle 1.11 -- this time with all tests ;)