https://kotlinlang.org logo
Title
j

jordanjennings

06/26/2018, 5:40 PM
if I create a
val
outside the plugins block it won't let me use it, and it doesn't seem like I can use extra properties here either...
s

suresh

06/27/2018, 3:38 PM
Define system properties in gradle.properties and can refer it from both plugin and outside like
val kotlinVer: String by System.getProperties()
gradle.properties -
systemProp.kotlinVer=1.2.50
j

jordanjennings

06/27/2018, 5:02 PM
@suresh ty! is there no other way to keep it in the build.gradle.kts? personally I don't like to externalize versions for things because I like to see them in context
s

suresh

06/28/2018, 3:54 AM
I am not aware of any other methods. The plugins block like a separate build script and you can’t share properties.