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', ':business_cases:post_creating:server', ':business_cases:post_creating:common', ':business_cases:post_creating:client', ] includes.each { include it ProjectDescriptor project = project(it) project.name = project.projectDir.absolutePath.replace("${rootDir.absolutePath}${File.separator}", "").replace(File.separator, ".") }