https://kotlinlang.org logo
Title
c

christophsturm

11/06/2020, 4:12 PM
i have this file in my buildSrc project:
package r2dbcfun

object ProjectConfig {
    const val eap = false
    val kotlinVersion = if (eap) "1.4.20-RC" else "1.4.10"
}
in my normal build file i have an import for it:
import r2dbcfun.ProjectConfig
still in the plugins block i have to specify the whole package:
kotlin("jvm").version(r2dbcfun.ProjectConfig.kotlinVersion)
probably because the plugins block is treated separately from the build file. idea shows the package as grayed out and wants to remove it, which results in an invalid build file
i guess thats all to normal behavior and idea removing it is a bug?
j

Javier

11/06/2020, 4:54 PM
where is this plugins block?
c

christophsturm

11/08/2020, 6:35 PM
at the beginning of my build.gradle.kts file