rsetkus
11/25/2020, 4:05 PMCannot change dependencies of dependency configuration ':iosArm64MainImplementationDependenciesMetadata' after task dependencies have been resolved
Anybody else experienced anything similar?Kamil Doległo
11/25/2020, 4:40 PMbuild.gradle
file?rsetkus
11/25/2020, 4:47 PM...
pluginManagement {
repositories {
gradlePluginPortal()
jcenter()
}
}
root build.gradle.kts
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath(Plugins.kotlinGradlePlugin)
classpath(Plugins.androidGradlePlugin)
classpath(Plugins.sqlDelightPlugin)
classpath("org.jetbrains.dokka:kotlin-as-java-plugin:1.4.10.2")
}
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
...
}
}
multiplatform module build.gradle.kts
plugins {
id("com.android.library")
kotlin("multiplatform")
id("org.jetbrains.dokka") version "1.4.10.2"
kotlin("plugin.serialization") version Versions.kotlinVersion
id("com.squareup.sqldelight")
}
....
tasks.withType<org.jetbrains.dokka.gradle.DokkaTask>().configureEach {
dokkaSourceSets {
/*
* Giving all 'native' source sets the same name will make them displayed by a single bubble.
*/
configureEach {
if (platform.get() == org.jetbrains.dokka.Platform.native) {
displayName.set("native")
}
}
/*
* Create custom source set (not known to the Kotlin Gradle Plugin)
*/
register("customSourceSet") {
this.jdkVersion.set(9)
this.displayName.set("custom")
this.sourceRoots.from(file("src/customJdk10/kotlin"))
}
}
}
Hope so that would be enough. Please, let me know if you need any more context info.Kamil Doległo
11/25/2020, 7:36 PMclasspath("org.jetbrains.dokka:kotlin-as-java-plugin:1.4.10.2")
on the classpath I believe, as it does not have configurable parameters. It would be enough to just put it in the dependencies
block as stated here: http://kotlin.github.io/dokka/1.4.10.2/user_guide/gradle/usage/#applying-plugins
As for the bug itself could you check if it happens with Kotlin 1.4.10
?rsetkus
11/25/2020, 10:00 PMbuild.gradle.kts
script
2. Ivalidated and restarted IDEA
No luck. Still getting the same error. Kotlin version 1.4.10
already.Kamil Doległo
11/26/2020, 12:25 AMrsetkus
11/26/2020, 8:36 AM