https://kotlinlang.org logo
#getting-started
Title
# getting-started
d

Draget

11/06/2020, 9:28 PM
I am reading https://kotlinlang.org/docs/reference/using-gradle.html to setup Kotlin with Gradle currently. When specifying dependencies, the document introduces the syntax first, where one does specify the deplendencies especially for the Kotlin SourceSets only. Not the top-level dependency-block. Is there any reasoning behind this? Any advantage compared to 'just' specifying the dependencies directly at top-level?
d

dector

11/07/2020, 11:13 AM
If you are developing for JVM - declare your dependencies in top-level
dependencies {}
block.
2 Views