https://kotlinlang.org logo
#gradle
Title
# gradle
b

brabo-hi

01/06/2023, 6:24 PM
Hello all, what is the right convention when using variable name, underscore or camelcase
org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version
or
org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion
l

Luke

01/06/2023, 7:07 PM
If you are in a .gradle.kts file, I'd say the same as Kotlin code style, which is camecase
v

Vampire

01/07/2023, 12:01 PM
Actually, in this case I'd say neither, but use version catalogs instead. :-) But yeah, if you must use a variable, use camelCase.
b

brabo-hi

01/10/2023, 1:09 PM
thank you guys
6 Views