Use regex to split modules
ci/woodpecker/push/pages Pipeline was successful Details
ci/woodpecker/push/gradle Pipeline was successful Details

This commit is contained in:
Johannes Frohnmeyer 2022-12-29 13:14:20 +01:00
parent 93ae52979b
commit 4d2195ee08
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 5 additions and 2 deletions

View File

@ -7,8 +7,11 @@ plugins {
id("lom")
}
val devOnlyModules by extra(prop("dev_only_module", "").split(", ", ",").filter { it.isNotBlank() })
val nonModSubprojects by extra(prop("non_mod_project", "").split(", ", ",").filter { it.isNotBlank() })
val splitRegex = Regex(", ?")
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
if (hasProperty("maven_group")) group = prop("maven_group")