Add method to include other project as included build

^KT-45745 In Progress
This commit is contained in:
Yahor Berdnikau
2022-03-10 20:40:24 +01:00
committed by teamcity
parent ca76c00b6c
commit f11ae83a3d
@@ -257,6 +257,23 @@ class TestProject(
""".trimIndent()
)
}
fun includeOtherProjectAsIncludedBuild(
otherProjectName: String,
pathPrefix: String
) {
val otherProjectPath = "$pathPrefix/$otherProjectName".testProjectPath
otherProjectPath.copyRecursively(projectPath.resolve(otherProjectName))
projectPath.resolve(otherProjectName).addDefaultBuildFiles()
settingsGradle.append(
"""
includeBuild '$otherProjectName'
""".trimIndent()
)
}
}
private fun commonBuildSetup(