Android kotlin migration in library module "Cannot change attributes of dependency configuration '<xxx>:debugCompileOnly' after it has been resolved"
I have started to migrate from Java to Kotlin for a project. It consists of 3 library modules, ui-core, ui-xxx, and ui-yyy, and an application submodule demo. The migration from Java to Kotlin in the application submodule was relatively easy and is done. I have done the Kotlin migration from another library project already, so I know it's not different than an application module.
Root level build.gradle:
buildscript {
...
repositories {
maven {
...
}
}
dependencies {...