How would I replace `kotlin-stdlib-jre8` with the ...
# announcements
d
How would I replace
kotlin-stdlib-jre8
with the jdk version in libraries I am using with gradle? I tried adding the jdk as a dependency, and then this on top of the build file:
Copy code
configurations.all {
    exclude group: "org.jetbrains.kotlin", module: "kotlin-stdlib-jre8"
    exclude group: "org.jetbrains.kotlin", module: 'kotlin-stdlib-jre7'
}
but with gradle's
dependencyInsight
the jre is still there..
i
-jdk7/8
artifacts are not binary drop-in replacements for
-jre7/8
. You need to use dependencies recompiled with
-jdk7/8
instead of
-jre7/8
if you don't want to have the latter brought transitively.
👍 1
☹️ 1