我已经尝试了几个小时让 dokka 在 gradle 下工作,但我找不到任何能够解决依赖关系的版本组合。例如
ekolotyluk@MacBook-Pro microservices % ./gradlew dokkaHtml
> Task :dokkaHtml FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':dokkaHtml'.
> Could not resolve all files for configuration ':dokkaHtmlPlugin'.
> Could not find org.jetbrains.kotlinx:kotlinx-html-jvm:0.7.2.
Required by:
project : > org.jetbrains.dokka:dokka-base:1.4.10.2
在我的 build.gradle 我有
dokka_version = "1.4.10.2"
. . .
repositories {
jcenter()
mavenCentral()
maven { url "https://dl.bintray.com/kotlin/dokka/" }
maven { url "https://dl.bintray.com/kotlin/kotlinx" }
}
plugins {
id "org.jetbrains.dokka" version "$dokka_version"
}
根据https://mvnrepository.com/artifact/org.jetbrains.kotlinx/kotlinx-html-jvm/0.7.2它应该在https://dl.bintray.com/kotlin/kotlinx/但根据 Gradle,找不到。
虽然我已经使用 Maven 十多年了,但我对 Gradle 还是很陌生。任何帮助或提示将不胜感激。