Kotlin / dokka

API documentation engine for Kotlin
https://kotl.in/dokka
Apache License 2.0
3.43k stars 407 forks source link

Gradle build fails for multiple DokkaTasks: cannot change dokkaRuntime configuration after it has been resolved #462

Closed knolleCC closed 5 years ago

knolleCC commented 5 years ago

Besides the default dokka task I have a special JavaDoc task. Since 0.9.18 I cannot run both in the same build, since dokka tries to change the dokkaRuntime configuration for each task which is permitted by Gradle:

Cannot change dependencies of configuration 'dokkaRuntime' after it has been resolved.

semoro commented 5 years ago

This is a regression introduced by #432, need to fix in 0.9.19

michaelbayles commented 5 years ago

Any workaround for this? (Besides downgrading to 0.9.17 of course) Would I just need to run multiple builds? ./gradlew dokkaHtml && ./gradlew dokkaMarkdown ? I like noJdkLink in 0.9.18 but that doesn't exist in 17

semoro commented 5 years ago

Please, try manually configure dokkaRuntime Like:

dependencies {
    dokkaRuntime 'org.jetbrains.dokka:dokka-fatjar:0.9.18'
}
KrystianUjma commented 5 years ago

pushed on multiplatform branch. We will release it in 0.9.19.