dharrigan
12/05/2017, 1:22 PM${property("foo")}
inside dependencies definitions, i.e., compile("com.google.protobuf:protobuf-java:${property("protobufVersion")}")
I know there is another way of defining the var inside the kts file, var foo="1.2"
then using $foo
inside the dependency definition. The latter being more "groovy" like (without the var definition). Is there no shorter way of expressing this?Czar
12/05/2017, 1:57 PMval protobufVersion by project
compile("com.google.protobuf:protobuf-java:$protobufVersion")
Which is still more verbose than groovy, but groovy has nonexistent methods interceptors and stuff, it isn't possible in Kotlin.dharrigan
12/05/2017, 2:35 PM