KotlinMultiplatformProjectT.../settings.gradle

17 lines
527 B
Groovy
Raw Permalink Normal View History

2020-12-02 15:50:52 +00:00
rootProject.name = 'project_name'
String[] includes = [
2020-12-02 16:13:21 +00:00
":lib"
2020-12-02 15:50:52 +00:00
]
includes.each { originalName ->
2022-05-31 19:29:44 +00:00
String projectDirectory = "${rootProject.projectDir.getAbsolutePath()}${originalName.replace(":", File.separator)}"
String projectName = "${rootProject.name}${originalName.replace(":", ".")}"
2020-12-02 15:50:52 +00:00
String projectIdentifier = ":${projectName}"
include projectIdentifier
ProjectDescriptor project = project(projectIdentifier)
project.name = projectName
project.projectDir = new File(projectDirectory)
}