Skip to content

Versioning plugin + Dokka v2 Gradle plugin false .DS_Store warning #3963

Open
@jeffdgr8

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.

Metadata

Assignees

No one assigned

    Labels

    bugrunner: gradle plugin v2Issues fixed by Dokka Gradle Plugin v2 - see https://github.com/Kotlin/dokka/issues/3131

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions