Build OSGi bundles with Gradle

When building with Java 7, Gradle shows the warning "bootstrap class path not set in conjunction with -source 1.6". This can be fixed by setting `options.bootClasspath`, but that's not a very clean solution because the path is different on each system.