From 34958064d2cdc0622975c7286c6c1686e14f87fb Mon Sep 17 00:00:00 2001 From: Marc Philipp Date: Sun, 19 Jan 2020 18:48:21 +0100 Subject: [PATCH] Track module descriptors as inputs --- documentation/documentation.gradle.kts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/documentation/documentation.gradle.kts b/documentation/documentation.gradle.kts index b580155a10e1..c492582a81fa 100644 --- a/documentation/documentation.gradle.kts +++ b/documentation/documentation.gradle.kts @@ -272,7 +272,9 @@ tasks { noTimestamp(true) addStringsOption("-module", ",").value = modularProjects.map { it.javaModuleName } - addPathOption("-module-source-path").value = modularProjects.map { it.file("src/module") } + val moduleSourcePathOption = addPathOption("-module-source-path") + moduleSourcePathOption.value = modularProjects.map { it.file("src/module") } + moduleSourcePathOption.value.forEach { inputs.dir(it) } addOption(ModuleSpecificJavadocFileOption("-patch-module", modularProjects.associate { it.javaModuleName to files(it.sourceSets.main.get().allJava.srcDirs, it.sourceSets.mainRelease9.get().allJava.srcDirs).asPath }))