Is there any "shortcut" to not have to declare var...
# gradle
x
Is there any "shortcut" to not have to declare variables in order to read data from
gradle.properties
? I have something like this:
Copy code
allprojects {
  ...

  repositories {
    maven {
      val artUser: String by extra    // artUser   = username in ~/.gradle.properties
      val artPasswd: String by extra  // artPasswd = P4sswd! in ~/.gradle.properties
      val artUrl: String by extra     // artUrl    = <https://domain.tld> in ~/.gradle.properties
      credentials {
        username = artUser
        password = artPasswd
      }
      url = URI("$artUrl/releases")
      //artifactUrls = mutableSetOf(URI("$artUrl/releases"), URI("$artUrl/snapshots"))
    }
  }
}