What's the difference in having `implementation(ko...
# announcements
j
What's the difference in having
implementation(kotlin("stdlib"))
and
implementation(kotlin("stdlib-jdk8"))
?
c
👍 1
j
Thanks 🙂 As I'm running on Java11 on a server. It should be fine for me to use use
stdlib-jdk8
?
c
Yeah, that should be fine. They don’t have stdlib versions past 8, but that one should work just fine. I have projects using
stdlib-jdk8
and running tests on JDKs 8 through 13 with no issues
j
Perfect. Thanks for the answers 👍
c
maybe it should be called jdk8+
m
It leverages features that were added in jdk8, hence the name. So Lambda's etc. Those still exist in 9, 10 etc, so it's still applicable, and those features haven't been superseded by anything in later JDK's. There haven't been jdk9, jdk10 etc versions as there hasn't been anything added to the bytecode that they've wanted to take advantage of in the stdlib.