class GroovyDependenciesConfigurer implements BuildCustomizer<Build> {

	private final boolean isUsingGroovy4;

	GroovyDependenciesConfigurer(boolean isUsingGroovy4) {
		this.isUsingGroovy4 = isUsingGroovy4;
	}

	@Override
	public void customize(Build build) {<FILL_FUNCTION_BODY>}

}

		String groupId = this.isUsingGroovy4 ? "org.apache.groovy" : "org.codehaus.groovy";
		build.dependencies().add("groovy", groupId, "groovy", DependencyScope.COMPILE);
	
<no_super_class>