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 17:04:29 +02:00
parent 67176fa566
commit 84b9dadd1d
Signed by: Johannes
GPG Key ID: E76429612C2929F4
2 changed files with 4 additions and 2 deletions

View File

@ -16,7 +16,6 @@ interface JfModExtension: LomExtension {
override fun check(proj: Project) {
super.check(proj)
libJfVersion.finalizeValue()
val p = proj.allprojects
modrinth.check(proj)
curseforge.check(proj)
}

View File

@ -1,4 +1,5 @@
import io.gitlab.jfronny.scripts.*
import org.gradle.api.internal.project.ProjectStateInternal
import org.gradle.api.tasks.compile.JavaCompile
import org.gradle.kotlin.dsl.dependencies
import org.gradle.kotlin.dsl.withType
@ -33,7 +34,9 @@ insertEarlyAfterEvaluate {
}
}
fun Project.pAfterEvaluate(action: (Project) -> Unit) = afterEvaluate { action(this) }
fun Project.pAfterEvaluate(action: (Project) -> Unit) =
if ((this.state as ProjectStateInternal).hasCompleted()) action(this)
else afterEvaluate { action(this) }
afterEvaluate {
rootProject.allprojects.forEach {