Use regex to split modules
This commit is contained in:
parent
93ae52979b
commit
4d2195ee08
|
@ -7,8 +7,11 @@ plugins {
|
||||||
id("lom")
|
id("lom")
|
||||||
}
|
}
|
||||||
|
|
||||||
val devOnlyModules by extra(prop("dev_only_module", "").split(", ", ",").filter { it.isNotBlank() })
|
val splitRegex = Regex(", ?")
|
||||||
val nonModSubprojects by extra(prop("non_mod_project", "").split(", ", ",").filter { it.isNotBlank() })
|
fun String.splitByComma() = splitRegex.split(this).filter { it.isNotBlank() }
|
||||||
|
|
||||||
|
val devOnlyModules by extra(prop("dev_only_module", "").splitByComma())
|
||||||
|
val nonModSubprojects by extra(prop("non_mod_project", "").splitByComma())
|
||||||
val self = project
|
val self = project
|
||||||
if (hasProperty("maven_group")) group = prop("maven_group")
|
if (hasProperty("maven_group")) group = prop("maven_group")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue