fix regression GRADLE-3116 by reverting changes on GroovyRuntime; add integration test;