rootProject.name='postssystem' String[] includes = [ ':utils:common', ':utils:repos', ':utils:repos:common', ':utils:repos:ktor:common', ':utils:repos:ktor:client', ':utils:repos:ktor:server', ':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', ':core:ktor:server', ':publishing:api', ':publishing:exposed', ':publishing:ktor:common', ':publishing:ktor:client', ':publishing:ktor:server', ':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, ".") }