private void addGcloudRepository() { getProject().getRepositories().clear(); getProject() .getRepositories() .ivy( repo -> { repo.setUrl(config.distBaseUrl()); repo.layout( "pattern", layout -> { IvyPatternRepositoryLayout ivyLayout = (IvyPatternRepositoryLayout) layout; ivyLayout.artifact("[artifact](-[revision]-[classifier]).[ext]"); ivyLayout.ivy("[revision]/ivy.xml"); }); }); }