Open
Description
Describe the bug
Using the versioning plugin with the Dokka v2 Gradle plugin produces the warning:
[:dokkaGeneratePublicationHtml] Failed to find versions file named version.json in /{olderVersionsDir}/.DS_Store
Expected behaviour
No warning should be output. .DS_Store (and probably any non-directory file) should be ignored.
To Reproduce
Run the :dokkaGenerate
task with a .DS_Store file in the olderVersionsDir
directory.
Dokka configuration
Configuration of dokka used to reproduce the bug
dependencies {
dokkaPlugin(libs.dokka.versioning)
}
tasks.dokkaGeneratePublicationHtml {
dokka.pluginsConfiguration.versioning {
olderVersionsDir = projectDir.resolve("docs/older")
// ...
}
}
Installation
- Operating system: macOS
- Build tool: Gradle v8.11.1
- Dokka version: 2.0.0
Additional context
Reproducible with my library, Kotbase.