Hello! Is there any specific reason for absence de...
# gradle
i
Hello! Is there any specific reason for absence dependency builder functions
kotlinx
to add dependencies in group
org.jetbrains.kotlinx
? Possible use cases: 1. Adding dependencies by github.com/Kotlin
Copy code
dependencies {
  implementation(kotlinx("coroutines-core", "1.5.1"))
}
2. Adding plugins by github.com/Kotlin
Copy code
plugins {
  kotlinx("benchmark") version "0.3.1"
}
👍 3
🤔 3
t
kotlin(..)
shortcut comes from Gradle
kotlin-dsl
, so, please, open a new Gradle issue regarding adding new shortcut
i
I just wanted to check if there is a simple reason. I'll add an issue, of course
g
I found that I don’t like those shortcuts, they look inconsistent with other dependency declarations, make it harder to search by dependency name and what is even worse, it adds own version if you omit version (and it will be Gradle Kotlin version, not Kotlin Plugin version), so as result you cannot explicitly omit it if you use BOM for example (I prefer fail if BOM is not applied instead of getting unexpected version of dependency in classpath) I also think that kotlinx would be even more strange, because kotlin-dsl has nothing to do with kotlinx In general I think that it was a mistake to add it, it’s an overuse of DSL And all of those shortcuts become completely redundant when you use versions catalog
👍 5
v
Then open a counter-FR to remove that one 😄