Skip to content

Commit 72d7dd5

Browse files
committed
Evaluation of preprocessed projects must depend on their parent
Cause that's where the relationship between versions is defined and without the explicit dependency, `--configure-on-demand` builds may fail.
1 parent 8385acb commit 72d7dd5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/kotlin/com/replaymod/gradle/preprocess/PreprocessPlugin.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class PreprocessPlugin : Plugin<Project> {
2222
return
2323
}
2424

25+
project.evaluationDependsOn(parent.path)
2526
val rootExtension = parent.extensions.getByType<RootPreprocessExtension>()
2627
val graph = rootExtension.rootNode ?: throw IllegalStateException("Preprocess graph was not configured.")
2728
val projectNode = graph.findNode(project.name) ?: throw IllegalStateException("Prepocess graph does not contain ${project.name}.")

0 commit comments

Comments
 (0)