core/settings.gradle
2022-01-22 20:19:50 +06:00

75 lines
1.9 KiB
Groovy

rootProject.name = 'postssystem'
String[] includes = [
":features:common:common",
":features:common:client",
":features:common:server",
":features:files:common",
":features:files:client",
":features:files:server",
":features:status:common",
":features:status:client",
":features:status:server",
":features:users:common",
":features:users:client",
":features:users:server",
":features:roles:common",
":features:roles:client",
":features:roles:server",
":features:roles:manager:common",
":features:roles:manager:client",
":features:roles:manager:server",
":features:auth:common",
":features:auth:client",
":features:auth:server",
":features:content:common",
":features:content:client",
":features:content:server",
":features:content:text:common",
":features:content:text:client",
":features:content:text:server",
":features:content:binary:common",
":features:content:binary:client",
":features:content:binary:server",
":features:posts:common",
":features:posts:client",
":features:posts:server",
":services:posts:common",
":services:posts:client",
":services:posts:server",
":features:publication:common",
":features:publication:client",
":features:publication:server",
":targets:telegram:publication:server",
":server",
":client",
]
includes.each { originalName ->
String projectDirectory = "${rootProject.projectDir.getAbsolutePath()}${originalName.replaceAll(":", File.separator)}"
String projectName = "${rootProject.name}${originalName.replaceAll(":", ".")}"
String projectIdentifier = ":${projectName}"
include projectIdentifier
ProjectDescriptor project = project(projectIdentifier)
project.name = projectName
project.projectDir = new File(projectDirectory)
println(project)
}
enableFeaturePreview("VERSION_CATALOGS")