Add gradle build script to lib as well