Gabor Torok
11/27/2025, 6:00 PMSystem.setProperty - and if i do, every other project can just check if the property is set, and if it is, use it, and not do the calculations. this actually works, the checks run only once, yay.
however this solution feels a bit hacky, as it is kind of circumventing gradle to pass along the information.
the question is, are there some alternatives that are better for this use case? we are currently using 8.11.1 - is this solution still going to be viable in later releases?Adam
11/29/2025, 10:03 AMAdam
11/29/2025, 10:07 AMSystem.setProperty is probably fine, even if it's not 'idiomatic Gradle'.
If you wanted another option I'd suggest using a shared BuildService. (Just watch out for https://github.com/gradle/gradle/issues/17559!) The BuildService can compute the values once and then share them across subprojects (though not across included builds).Adam
11/29/2025, 10:09 AMproject.extensions.add("isCi", false). (I'm not sure how it'd work with included builds though.)Gabor Torok
12/01/2025, 2:39 AMAdam
12/01/2025, 7:56 AMGabor Torok
12/01/2025, 5:03 PM