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)
|
|
|
|
}
|
2022-01-29 15:47:34 +00:00
|
|
|
|
|
|
|
enableFeaturePreview("VERSION_CATALOGS")
|