gammax
02/04/2021, 12:26 AMrusshwolf
02/04/2021, 1:11 AMgammax
02/04/2021, 1:25 AMkotlin("multiplatform")
plugin.
So far our Gradle plugin supports Android and JVM projects out of the box, and creates Detekt tasks with the correct classpaths. If a user is applying instead the KMP plugin, we don’t generate specific tasks for every target/source set. Ideally I would like to offer this support.Javier
02/04/2021, 1:29 AMgammax
02/04/2021, 1:35 AMplugins {
kotlin("multiplatform")
id("com.android.library")
id("io.gitlab.arturbosch.detekt") version "1.18.0"
}
Then it will pickup the android source set correctly and will add specific tasks for that, as the Detekt plugin recognises that you’re applying AGP. But the KMP Gradle plugin is ignored as of today.Nicholas Doglio
02/04/2021, 1:39 AMgammax
02/04/2021, 1:40 PM.sourceDirectories
(here).
The reason is that they don’t need to have access to depenencies and to resolve types. In detekt we do so we can provide more in-depth analysis.gammax
02/07/2021, 11:20 PM