-
Notifications
You must be signed in to change notification settings - Fork 399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoSuchMethodError with Gradle 8.0 RC1 #2796
Comments
The changes in gradle-wrapper.jar, gradle-wrapper.properties and gradlew are the result of running this command twice: ./gradlew wrapper --gradle-version 8.0-rc-1 --gradle-distribution-sha256-sum 9a943d5484e57586d1c4eb1b8851ba81e1753dea4891d6e3c3c630ae848635ed Right now Dokka is broken, see Kotlin/dokka#2796
Thanks for reporting it! Andrey has come up with a simple fix to get it working with Gradle 8 (will be released in 1.8.0), and we'll look into getting rid of the dependency on internal classes in #2822 |
The changes in gradle-wrapper.jar, gradle-wrapper.properties and gradlew are the result of running this command twice: ./gradlew wrapper --gradle-version 8.0-rc-2 --gradle-distribution-sha256-sum a087ac457494858b9b322f39b61f157e6bd4793f32e3397567e1c60b7d151ff6 Right now Dokka is broken, see Kotlin/dokka#2796
The changes in gradle-wrapper.jar, gradle-wrapper.properties and gradlew are the result of running this command twice: ./gradlew wrapper --gradle-version 8.0-rc-2 --gradle-distribution-sha256-sum a087ac457494858b9b322f39b61f157e6bd4793f32e3397567e1c60b7d151ff6 Right now Dokka is broken, see Kotlin/dokka#2796
The changes in gradle-wrapper.jar, gradle-wrapper.properties and gradlew are the result of running this command twice: ./gradlew wrapper --gradle-version 8.0-rc-2 --gradle-distribution-sha256-sum a087ac457494858b9b322f39b61f157e6bd4793f32e3397567e1c60b7d151ff6 Right now Dokka is broken, see Kotlin/dokka#2796
The changes in gradle-wrapper.jar, gradle-wrapper.properties and gradlew are the result of running this command twice: ./gradlew wrapper --gradle-version 8.0-rc-3 --gradle-distribution-sha256-sum e0585a36e56b8ddd86cfe5358d7329f633063af85d6aab190428f3e0cb47b1f0 Right now Dokka is broken, see Kotlin/dokka#2796
The changes in gradle-wrapper.jar, gradle-wrapper.properties and gradlew are the result of running this command twice: ./gradlew wrapper --gradle-version 8.0-rc-5 --gradle-distribution-sha256-sum e79c4a71d8646406b2c6d9f3bd5c4618439a45ffeecd24abb5f61011392d39fb Right now Dokka is broken, see Kotlin/dokka#2796
The changes in gradle-wrapper.jar, gradle-wrapper.properties and gradlew are the result of running this command twice: ./gradlew wrapper --gradle-version 8.0-rc-5 --gradle-distribution-sha256-sum e79c4a71d8646406b2c6d9f3bd5c4618439a45ffeecd24abb5f61011392d39fb While touching the build files, the following was also done: * use Java toolchains, see https://kotlinlang.org/docs/gradle-configure-project.html#gradle-java-toolchains-support * use the new compilerOptions DSL introduced in Kotlin 1.8.0, see https://kotlinlang.org/docs/whatsnew18.html#exposing-kotlin-compiler-options-as-gradle-lazy-properties Right now Dokka is broken, see Kotlin/dokka#2796
The changes in gradle-wrapper.jar, gradle-wrapper.properties and gradlew are the result of running this command twice: ./gradlew wrapper --gradle-version 8.0 --gradle-distribution-sha256-sum f30b29580fe11719087d698da23f3b0f0d04031d8995f7dd8275a31f7674dc01 While touching the build files, the following was also done: * use Java toolchains, see https://kotlinlang.org/docs/gradle-configure-project.html#gradle-java-toolchains-support * use the new compilerOptions DSL introduced in Kotlin 1.8.0, see https://kotlinlang.org/docs/whatsnew18.html#exposing-kotlin-compiler-options-as-gradle-lazy-properties Running the dokkaHtmlMultiModule task is not possible with Dokka 1.7.20 and Gradle 8.0 due to Kotlin/dokka#2796. This will prevent us from publishing Dokka docs until a fix is released.
The changes in gradle-wrapper.jar, gradle-wrapper.properties and gradlew are the result of running this command twice: ./gradlew wrapper --gradle-version 8.0 --gradle-distribution-sha256-sum f30b29580fe11719087d698da23f3b0f0d04031d8995f7dd8275a31f7674dc01 While touching the build files, the following was also done: * use Java toolchains, see https://kotlinlang.org/docs/gradle-configure-project.html#gradle-java-toolchains-support * use the new compilerOptions DSL introduced in Kotlin 1.8.0, see https://kotlinlang.org/docs/whatsnew18.html#exposing-kotlin-compiler-options-as-gradle-lazy-properties Running the dokkaHtmlMultiModule task is not possible with Dokka 1.7.20 and Gradle 8.0 due to Kotlin/dokka#2796. This will prevent us from publishing Dokka docs until a fix is released.
FYI. Having the same issue with Gradle |
* Gradle 8.0 -> 8.0.2 * Kotlin 1.8.0 -> 1.8.10 * KSP 1.8.0-1.0.8 -> 1.8.10-1.0.9 * Ktor 2.2.1 -> 2.2.4 * kotlinx.serialization 1.4.1 -> 1.5.0 * Dokka 1.8.0-dev-194 -> 1.8.10 * AtomicFU 0.19.0 -> 0.20.0 * Binary compatibility validator 0.12.1 -> 0.13.0 * JUnit 5 5.9.1 -> 5.9.2 * MockK 1.13.2 -> 1.13.4 The wrapper task is no longer configured to use the all distribution type. This results in smaller downloads (e.g. in CI) while still being able to inspect sources in IntelliJ (they are downloaded automatically). Nothing is serializable since Kotlin 1.8.0 and kotlinx.serialization 1.5.0-RC which means dev.kord.common.entity.DiscordNull and dev.kord.gateway.NullDecoder are now obsolete. Kotlin/dokka#2796 was fixed with Dokka 1.8.10, which means the dev build used since #755 is no longer needed and the corresponding maven repository was removed from the build files.
* Gradle 8.0 -> 8.0.2 * Kotlin 1.8.0 -> 1.8.10 * KSP 1.8.0-1.0.8 -> 1.8.10-1.0.9 * Ktor 2.2.1 -> 2.2.4 * kotlinx.serialization 1.4.1 -> 1.5.0 * Dokka 1.8.0-dev-194 -> 1.8.10 * AtomicFU 0.19.0 -> 0.20.0 * Binary compatibility validator 0.12.1 -> 0.13.0 * JUnit 5 5.9.1 -> 5.9.2 * MockK 1.13.2 -> 1.13.4 The wrapper task is no longer configured to use the all distribution type. This results in smaller downloads (e.g. in CI) while still being able to inspect sources in IntelliJ (they are downloaded automatically). Nothing is serializable since Kotlin 1.8.0 and kotlinx.serialization 1.5.0-RC which means dev.kord.common.entity.DiscordNull and dev.kord.gateway.NullDecoder are now obsolete. Kotlin/dokka#2796 was fixed with Dokka 1.8.10, which means the dev build used since #755 is no longer needed and the corresponding maven repository was removed from the build files.
you probably already know this, but it's fixed with |
Describe the bug
Using Gradle 8.0 RC1 I'm unable to run the
dokkaHtmlMultiModule
task because of aNoSuchMethodError
:The reason for this seems to be that
org.gradle.api.internal.tasks.AbstractTaskDependency
no longer has a no-arg constructor thatorg.jetbrains.dokka.gradle.TaskDependencyInternalWithAdditions
tries to call.Expected behaviour
I can run the
dokkaHtmlMultiModule
without any exceptions.To Reproduce
Run the
dokkaHtmlMultiModule
task in a multi-module Gradle project using Gradle 8.0 RC1.Installation
The text was updated successfully, but these errors were encountered: