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

View File

@@ -27,6 +27,12 @@ dependencies {
api "com.google.code.gson:gson:2.9.0"
}
rootProject.createJsondocs.dependsOn jar
rootProject.createPythonTypeStubs.dependsOn jar
def jsonTask = rootProject.tasks.findByName("createJsondocs") ?: rootProject.tasks.findByName("createJsonDocs")
if (jsonTask != null) {
jsonTask.dependsOn(jar)
}
def stubTask = rootProject.tasks.findByName("createPythonTypeStubs")
if (stubTask != null) {
stubTask.dependsOn(jar)
}

View File

@@ -23,3 +23,14 @@ dependencies {
implementation 'org.commonmark:commonmark-ext-footnotes:0.23.0'
implementation 'org.commonmark:commonmark-ext-gfm-tables:0.23.0'
}
project.afterEvaluate {
rootProject.ext.mdDeps.clear()
configurations.runtimeClasspath.resolve().each { File f ->
rootProject.ext.mdDeps.add(f.getAbsolutePath())
}
sourceSets.main.output.files.each { File f ->
rootProject.ext.mdDeps.add(f.getAbsolutePath())
}
}