mirror of
https://github.com/InsanusMokrassar/PlaguBot.git
synced 2024-10-31 21:13:46 +00:00
14 lines
529 B
Groovy
14 lines
529 B
Groovy
String[] toInclude = [":bot", ":plugin"]
|
|
|
|
rootProject.name = 'plagubot'
|
|
|
|
toInclude.each { originalName ->
|
|
String projectDirectory = "${rootProject.projectDir.getAbsolutePath()}${originalName.replace(":", File.separator)}"
|
|
String projectName = "${rootProject.name}${originalName.replace(":", ".")}"
|
|
String projectIdentifier = ":${projectName}"
|
|
include projectIdentifier
|
|
ProjectDescriptor project = project(projectIdentifier)
|
|
project.name = projectName
|
|
project.projectDir = new File(projectDirectory)
|
|
}
|