kv
07/02/2024, 5:35 PMbuildSrc/build.gradle.kts . I'd like to access the values (ext or otherwise) and functions from the root/top-level project's groovy-based build.gradle . What's the best way to do so?Vampire
07/02/2024, 8:15 PMext properties per-se is usually already bad practice, as it usually is just a work-around for doing something not properly.
But besides that, buildSrc is a separate build that is run before your build even starts, so you can hardly access the main project's build model from the buildSrc build script.
If you want to share some build logic, put it to a separate build, that you then includeBuild and use where you need it.kv
07/03/2024, 9:54 PMVampire
07/03/2024, 9:57 PMVampire
07/03/2024, 9:58 PMVampire
07/03/2024, 9:58 PMbuildSrc classes in settings scripts anymore since a few yearskv
07/04/2024, 1:15 AM