Fix build issues with Gradle 9 on --parallel

Fixes: #8621
This commit is contained in:
Johannes Obermayr
2025-11-12 16:02:33 +01:00
committed by Ryan Kurtz
parent dfc4ec586a
commit d160f22f09
6 changed files with 77 additions and 41 deletions
+20
View File
@@ -89,6 +89,26 @@ else {
}
}
/*********************************************************************************
* Force all project compile classpaths to be resolved at configuration time.
*********************************************************************************/
allprojects {
afterEvaluate {
configurations.matching { it.name.endsWith("compileClasspath") }.all { cfg ->
if (cfg.canBeResolved) {
try {
cfg.files // trigger resolution safely now
} catch (ignored) { }
}
}
}
}
/*********************************************************************************
* Store :MarkdownSupport ClassPath to fix issues with Gradle 9.
*********************************************************************************/
ext.mdDeps = []
/*********************************************************************************
* Imports
* For these tasks to be available on all subprojects, this MUST be placed