hey! does anyone else have the problem that IDEA d...
# gradle
b
hey! does anyone else have the problem that IDEA depends on the gradle-api jar and that dependencies in the that jar conflict with your local classes (in my case f.ex. slf4j which is also packages in the gradle jar)
message has been deleted
r
No - for me IntelliJ correctly knows that gradle-api.jar is only on the classpath of gradle scripts, not on my module’s main or test classpaths
c
its probably a problem in your build.gradle.kts file
b
hmm .. maybe it's related to multi-module in combination compiled gradle files.kts in /buildSrc
conventions
aka precompiled script plugins
c
can you post your gradle file?
b
i have like 20? of them .. but somehow it seems that this dependency bleeds into the sub projects org.jetbrains.kotlinkotlin gradle plugin api1.4.31
hmm
kotlinCompilerPluginClasspath .. that should not be there i guess
thats my gradle file in buildSrc
and then i have in buildSrc/src/main/kotlin other build files like this components.kotlin-common-conventions.gradle.kts
these get precompiled and i use them in my sub projects like this
Copy code
plugins {
    id("components.kotlin-application-conventions")
}
and it causes some problems for me because of idea bugs, but not the problem you described
b
hmm .. one difference is that in the root folder i dont have a build.gradle.kts .. only a settings.gradle.kts
beside that it looks quite similar
r
Hi Sascha, Even I am facing this issue in idea, slf4j api is transitively available in compile classpath,but build in idea fails with org.slf4j does not exist..intelij gradle integration issue ??