how can i get compose.version=1.6.0-dev1340 kotlin...
# compose-desktop
z
how can i get compose.version=1.6.0-dev1340 kotlin.version=1.9.21 from gradle.properties at runtime to show the user? or maybe get them from build.gradle.kts? both ok, just how do i do that?
z
yeah i use com.github.gmazzo.buildconfig but thats not the issue. what is the name of those vars?
how do i get the versions used to compile the app
p
The plugin allows you to get the version from gradle and place it in an object class. At runtime read the values from that object. Unless I am missing something in your question
z
i know. but what exactly is the variable's name in gradle for the compose version? i don't know
i found what the name for the kotlin version is. but what is the name for the compose version?
p
You access the properties in gradle.properties by using its exact name. For instance:
project.findProperty("compose.version")
That's is the name you gave it in your gradle.properties file
👍 1
z
ahh thanks. that was the missing peace of the puzzle
👍 1