mbonnin
08/08/2019, 5:58 PMkotlin-stdlib-jdk8
but not for plain kotlin-stdlib
?
implementation("org.jetbrains.kotlin:kotlin-stdlib")
works but implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
doesn'toctylFractal
08/08/2019, 6:31 PMmbonnin
08/08/2019, 6:32 PMclasspath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.41")
in my root build.gradle.kts. I guess this is where the version comes fromoctylFractal
08/08/2019, 6:33 PMimplementation(platform("org.jetbrains.kotlin:kotlin-bom:1.3.41"))
mbonnin
08/08/2019, 6:33 PMoctylFractal
08/08/2019, 6:34 PMimplementation(kotlin("stdlib-jdk8"))
mbonnin
08/08/2019, 6:34 PMERROR: Failed to resolve: org.jetbrains.kotlin:kotlin-stdlib-jdk8:
Affected Modules: app
kotlin()
shorthand just prepends "org.jetbrains.kotlin", it does not add versionSergey Chelombitko
08/08/2019, 6:56 PMmbonnin
08/08/2019, 6:58 PMid("kotlin-android")
Sergey Chelombitko
08/08/2019, 7:01 PMkotlin-stdlib*
until 1.3.50org.jetbrains.kotlin
groupmbonnin
08/08/2019, 7:03 PMkotlin-stdlib
Sergey Chelombitko
08/08/2019, 7:04 PMoctylFractal
08/08/2019, 7:04 PMkotlin-stdlib
may be an transitive dependency of another kotlin-android
library, and therefore doesn't need a version. I don't recall exactly how gradle handles that case.mbonnin
08/08/2019, 7:07 PMorg.jetbrains.kotlin:kotlin-android-extensions-runtime:1.3.41
and that in turns pull kotlin-stdlib
implementation("org.jetbrains.kotlin:kotlin-stdlib")
but if I need jdk8 I have to specify the version. It all makes sense, thanks!