Joel Denke
08/07/2025, 5:29 AMgildor
08/07/2025, 7:41 AMmbonnin
08/07/2025, 7:50 AMJoel Denke
08/07/2025, 7:51 AMmbonnin
08/07/2025, 7:51 AMmbonnin
08/07/2025, 7:51 AMJoel Denke
08/07/2025, 7:52 AMJoel Denke
08/07/2025, 7:52 AMJoel Denke
08/07/2025, 7:53 AMmbonnin
08/07/2025, 7:54 AMcom.github.gmazzo.buildconfig
mbonnin
08/07/2025, 7:54 AMJoel Denke
08/07/2025, 8:02 AMJoel Denke
08/07/2025, 8:03 AMmbonnin
08/07/2025, 8:06 AMcom.github.gmazzo.buildconfig
or something else is an implementation detailJoel Denke
08/07/2025, 8:07 AMJoel Denke
08/07/2025, 8:08 AMmbonnin
08/07/2025, 8:09 AMmbonnin
08/07/2025, 8:10 AMPRODUCTION=true ./gradlew desktopDistribution # or whatever the name of the binary building task is
mbonnin
08/07/2025, 8:10 AMJoel Denke
08/07/2025, 8:11 AMJoel Denke
08/07/2025, 8:11 AMJoel Denke
08/07/2025, 8:11 AMmbonnin
08/07/2025, 8:12 AMvariants
in KMP, which I personally like. This is the cause of so much complexityCLOVIS
08/07/2025, 8:15 AMmbonnin
08/07/2025, 8:15 AMmbonnin
08/07/2025, 8:16 AM<http://api.example.com|api.example.com>
or <http://preprod.example.com|preprod.example.com>
CLOVIS
08/07/2025, 8:16 AMCLOVIS
08/07/2025, 8:17 AMmbonnin
08/07/2025, 8:17 AMvariants
, i.e. duplicate your task graph. Or just an env variable that tweaks your task graph in 2 different invocationsJoel Denke
08/07/2025, 8:17 AMJoel Denke
08/07/2025, 8:18 AMJoel Denke
08/07/2025, 8:18 AMmbonnin
08/07/2025, 8:18 AMvariants
, you can reuse CC between your debug and prod builds, this is the only advantage I can seeJoel Denke
08/07/2025, 8:19 AMJoel Denke
08/07/2025, 8:20 AMJoel Denke
08/07/2025, 8:20 AMJoel Denke
08/07/2025, 8:38 AMbuildConfig {
buildConfigField("APP_SERVER", project.providers.gradleProperty("app.server")
.orElse("<https://productionserver>"))
}
I am adding it like this btw, feels ok π SO can optionally override if want to.