Skip to main content

Note: Stdlib Dependency Declaration No Longer Needed from Kotlin 1.4

This article was translated from Japanese by Claude Code.

f🆔shoheikawano:20200930231113j:plain

Photo by Marc Reichelt on Unsplash

As the title says, from Kotlin 1.4, Kotlin Gradle projects no longer need to specify the Standard Library org.jetbrains.kotlin:kotlin-stdlib-* dependency. This is also documented in the Kotlin 1.4 article.

What’s New in Kotlin 1.4 - Kotlin Programming Language

Dependency on the standard library added by default You no longer need to declare a dependency on the stdlib library in any Kotlin Gradle project, including a multiplatform one. The dependency is added by default.

The automatically added standard library will be the same version of the Kotlin Gradle plugin, since they have the same versioning.

I happened to find the following commit and when I looked it up, sure enough it was documented.

github.com

If you’re developing projects using Kotlin such as Android or KMP, you might be able to reduce some gradle configuration. That’s all for this rough note~ ✍