Try to fix dev launch
ci/woodpecker/push/gradle Pipeline was successful Details
ci/woodpecker/push/pages Pipeline was successful Details

This commit is contained in:
Johannes Frohnmeyer 2023-07-18 16:56:12 +02:00
parent 25ea37e371
commit 67176fa566
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 16 additions and 12 deletions

View File

@ -11,7 +11,7 @@ plugins {
val args = extensions.create<JfModuleExtension>("jfModule")
val isRoot = project == rootProject
val rootArgs get() = rootProject.extensions.getByName<JfModExtension>("jfMod");
val rootArgs get() = rootProject.extensions.getByName<JfModExtension>("jfMod")
insertEarlyAfterEvaluate {
args.check(project)
@ -33,8 +33,11 @@ insertEarlyAfterEvaluate {
}
}
fun Project.pAfterEvaluate(action: (Project) -> Unit) = afterEvaluate { action(this) }
afterEvaluate {
rootProject.allprojects.forEach { sub ->
rootProject.allprojects.forEach {
it.pAfterEvaluate { sub ->
if (sub != this && rootArgs.isMod(sub)) {
loom {
mods {
@ -51,6 +54,7 @@ afterEvaluate {
}
}
}
}
val devOnly = args.devOnly.getOrElse(false)
if (!isRoot && !devOnly && !sourceSets.testmod.get().resources.isEmpty) {