https://kotlinlang.org logo
#detekt
Title
# detekt
r

robstoll

08/12/2021, 7:35 PM
running in the following issue (with detekt 1.18.0) for :detektJvmMain
error: the feature "multi platform projects" is experimental and should be enabled explicitly
How do I enable this explicitly could not find something on detekt.github.io
r

robstoll

08/12/2021, 7:39 PM
looks unlikely to me as it only occurs for dekteJvmMain, compileKotlinJvm does not complain
also the error occurs when running gradle, it's not an intellij problem
b

BorzdeG

08/12/2021, 8:21 PM
Gradle 7.2-rc-2 + Kotlin 1.5.21 + Detekt 1.8.0 + JVM 11.0.2 > the problem is not reproducible Although recently I also ran into her…
r

robstoll

08/12/2021, 8:29 PM
I get the error for the following:
Copy code
actual typealias JvmSynchronized = Synchronized
just in case you want to check if this also no longer occurs with gradle 7.2-rc2 (all other dependencies are the same as I already use)
b

BorzdeG

08/12/2021, 8:30 PM
But I saw another problem - detektJvmMain is not executed if it is not explicitly called ... 😞 I will go to issue a bug
m

mkrussel

08/12/2021, 8:59 PM
They intentionally made it so only
detekt
is included by
check
. The other tasks have to be run manually.
I get this mpp warning also. My guess is that detekt is not passing some flag to the compiler, but I don't really know how it works
r

robstoll

08/13/2021, 12:33 PM
@BorzdeG check depended on detektJvmMain in 1.17.1, so I guess it's a regression
11 Views