윤동환
11/06/2023, 8:51 AMorg.jetbrains.kotlinx:kotlinx-coroutines-core-jvm
or org.jetbrains.kotlin:kotlin-reflect
?
I checked using kotlin version 1.8.22 with jvm plugin, the both jvm, reflect dependencies of version 1.8.22 downloaded.CLOVIS
11/06/2023, 10:51 AMorg.jetbrains.kotlinx:kotlinx-coroutines-core
(works for all platforms) or org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm
(JVM-only).
I recommend always using the first artifact, because the Kotlin plugin will automatically replace it with the correct platform.
For reflect, same answer: if you need reflection, you need org.jetbrains.kotlin:kotlin-reflect
.
If they are already in your project without you including them, it may because some other library you're using depends on them (for example, Ktor). If you want to know if this is the case, you can run ./gradlew :dependencies
to get a graph of all your libraries and how they depend on each other.