Use a distribution in the test if provided.
Clean up some build-related stuff.
Merge pull request #26 from nebula-plugins/custom-distribution-test

Custom distribution test
Merge branch 'gradle-1.12' into gradle-2.0

Conflicts:
	build.gradle
	gradle/wrapper/gradle-wrapper.properties
Leave out custom distribution since it is hard to maintain a matching custom distribution.