Switch to plugins block and gradle-defaults.