so i'm just getting started converting an existing...
# gradle
m
so i'm just getting started converting an existing gradle script into kotlin... and i'll admit i'm a bit confused. generally i've put dependency versions into
gradle.properties
and referenced them in the build.gradle e.g.
Copy code
dependencies: {
  compile("foo:bar:${fooBarVersion}");
  ...
}
it looks like to do the equivalent in kotlin i have to define the variable in the kotlin script first before using it? e.g.
Copy code
val fooBarVersion: String by extra
compile("foo:bar:$fooBarVersion")
is this the case? if so, not sure there is much benefit to externalizing into
gradle.properties
vs just defining the version n the build file... pls let me know if i'm missing something