@@ -5,6 +5,7 @@ package org.jetbrains.dokka.gradle.engine.parameters
55
66import org.gradle.api.*
77import org.gradle.api.file.ConfigurableFileCollection
8+ import org.gradle.api.file.FileCollection
89import org.gradle.api.model.ObjectFactory
910import org.gradle.api.plugins.ExtensionAware
1011import org.gradle.api.provider.Property
@@ -177,8 +178,7 @@ constructor(
177178 *
178179 * By default, source roots are deduced from information provided by the Kotlin Gradle plugin.
179180 */
180- @get:InputFiles
181- @get:PathSensitive(PathSensitivity .RELATIVE )
181+ @get:Internal // tracked by `inputSourceFiles`
182182 abstract val sourceRoots: ConfigurableFileCollection
183183
184184 /* *
@@ -263,17 +263,11 @@ constructor(
263263 * Directories or individual files that should be suppressed, meaning declarations from them
264264 * will be not documented.
265265 *
266- * Will be concatenated with generated files if [suppressGeneratedFiles] is set to `false `.
266+ * Will be concatenated with generated files if [suppressGeneratedFiles] is set to `true `.
267267 */
268- @get:Internal
268+ @get:Internal // tracked by `inputSourceFiles`
269269 abstract val suppressedFiles: ConfigurableFileCollection
270270
271- /* *
272- * We don't care about the content of those [suppressedFiles] as we use those only as paths to filter sources.
273- */
274- @get:Input
275- internal val suppressedFilesInput: List <String >
276- get() = suppressedFiles.map { it.path }.sorted()
277271
278272 /* *
279273 * Whether to document/analyze generated files.
@@ -450,6 +444,18 @@ constructor(
450444 abstract val noJdkLink: Property <Boolean >
451445 // endregion
452446
447+ // this is just for task input tracking, it's not used anywhere
448+ @Suppress(" unused" )
449+ @get:InputFiles
450+ @get:IgnoreEmptyDirectories
451+ @get:PathSensitive(PathSensitivity .RELATIVE )
452+ internal val inputSourceFiles: FileCollection
453+ get() = sourceRoots.asFileTree.filter { sourceFile ->
454+ suppressedFiles.none { suppressedFile ->
455+ sourceFile.startsWith(suppressedFile)
456+ }
457+ }
458+
453459 companion object {
454460
455461 /* *
0 commit comments