Vlastimil Brecka
06/28/2026, 9:15 PMext {
environmentConfig = [
prod: [
foo-app : [
webUrl : "...",
linkUrl : "...",
marketingLinkUrl : "...",
],
...
],
preprod: [
...
],
...
}
have a config.gradle where I keep a neat dictionary config of bunch of urls per environment per app
why does this break `isolated project`s?
also, is there a more idiomatic way? maybe it should be a .properties file?Vampire
06/29/2026, 6:05 AMext / extra properties you should feel dirty, according to a former Gradle developer, what do you mean with break, what happens?
If you have that block for example applied on the root project and when they to access that extra property from a subproject, that is the violation.
Better have a convention plugin that registers an extension that provides the values. Then you also have proper types of you need anything else than string, and also is you would use Kotlin DSL (highly recommended), you would have proper IntelliSense for it.Vlastimil Brecka
06/29/2026, 8:35 AMVampire
06/29/2026, 8:37 AMVlastimil Brecka
06/29/2026, 8:40 AMVampire
06/29/2026, 8:43 AMVlastimil Brecka
06/29/2026, 8:45 AMVampire
06/29/2026, 8:57 AM