rootProject.name='postssystem' String[] includes = [ ':utils:common', ':utils:repos', ':utils:repos:common', ':utils:repos:exposed', ':exposed:commons', ':ktor:common', ':ktor:client', ':ktor:server', ':ktor:tests', ':core:api', ':core:exposed', ':core:ktor', ':core:ktor:common', ':core:ktor:client', ':publishing:api', ':publishing:exposed', ':markups:commons', ':markups:html' ] includes.each { include it ProjectDescriptor project = project(it) project.name = rootProject.name + project.projectDir.absolutePath.replace(rootDir.absolutePath, "").replace(File.separator, ".") }