I am trying to access a property defined in the gradle.properties file within my setting.gradle.kts file. For a non kotlin buils script this is easy to do:
settings.gradle
mavenrepo=https://somevalue.com
settings.gradle
pluginManagement {
repositories{
maven {
URL = uri(mavenrepo)
}
}
}
This works for a non kotlin settings.gradle file but I don’t know how to do this when using settings.gradle.kts. if I want to to access the property in build.gradle.kts I can do that with
value mavenrepo: String by project
but that does not work in settings.gradle.kts