Hi guys! How can I, using the gradle kts script, r...
# gradle
a
Hi guys! How can I, using the gradle kts script, retrieve properties stored in a properties file in a particular folder with a particular name?
m
Something like this should work:
Copy code
val properties = file("your/path").inputStream().use {
  java.util.Properties().apply {
    this.load(it)
  }
}

val value = properties.get("key")