pluginManagement { repositories { gradlePluginPortal() if (settings.hasProperty("repo")) maven { url repo } } }