Try to fix dev launch
This commit is contained in:
parent
67176fa566
commit
84b9dadd1d
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue