String[] toInclude = [":bot", ":plugin"] rootProject.name = 'plagubot' toInclude.each { include (it) project(it).name = "${rootProject.name}${it.replace(":", ".")}" }