Skip to content

Kotlin/JS 1.9.0 and multi modules: Failed build: java.lang.UnsupportedOperationException: Empty collection can't be reduced. #3063

@hfhbd

Description

@hfhbd

Describe the bug
Update Kotlin from 1.8.22 to 1.9.0:

java.lang.UnsupportedOperationException: Empty collection can't be reduced.

Expected behaviour
Successful build

Build scan
https://scans.gradle.com/s/4zn2v2imwg7m4/failure?expanded-stacktrace=WyIwLTEiLCIwIl0#1

To Reproduce
sqldelight/sqldelight#4338

Dokka configuration

tasks.named("dokkaHtmlMultiModule") {
  outputDirectory = file("$rootDir/docs/2.x")

  moduleName.set("SQLDelight")
  pluginsMapConfiguration.set(["org.jetbrains.dokka.base.DokkaBase": """
    {
      "footerMessage": "Copyright © 2022 Square, Inc.",
      "customStyleSheets": ["${file("docs/css/logo-styles.css")}"]
    }
  """])

  // https://github.com/Kotlin/dokka/issues/2954
  dependsOn(":sqldelight-compiler:dokkaHtmlMultiModule")
}

Installation

  • Operating system: Linux
  • Build tool: Gradle 8.2
  • Dokka version: 1.8.20

Additional context
n/A

Are you willing to provide a PR?
No

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions