Cannot access input property sourceLinks.localDirectory
#2786
Labels
bug
feedback: Kotlin libs
Feedback from Kotlin's internal libraries
runner: Gradle plugin
An issue/PR related to Dokka's Gradle plugin
Supposedly, because
GradleSourceLinkBuilder#localDirectory
is marked asInputDirectory
, it keeps track of all the files within this directory so that it can mark the task as out-of-date if anything changes.However, when
localDirectory
is targeting a directory with a lot of files (like the whole of the standard library), it can cause the following exceptions:These exceptions do not stop the build, but they slow it down considerably.
Should be reproducible on https://github.com/vmishenev/kotlin/tree/update-dokka/libraries/tools/kotlin-stdlib-docs
This property is only used for getting the absolute path of the source files in order to add source links to signatures. I can see no reason for why it should be responsible for making Dokka tasks out of date.
That being said, maybe
@InputDirectory
could be dropped in favor of something simpler.The text was updated successfully, but these errors were encountered: