Alexander Gherschon
06/12/2024, 3:42 PMVampire
06/12/2024, 3:43 PMAlexander Gherschon
06/12/2024, 4:53 PMAlexander Gherschon
06/12/2024, 4:53 PMAlexander Gherschon
06/12/2024, 4:55 PMVampire
06/12/2024, 5:11 PMAlexander Gherschon
06/12/2024, 5:13 PMephemient
06/12/2024, 5:14 PM:feature-a:sample-app is just a leaf, perhaps you could change it not to provide any consumable configurations. then it won't provide anything as a dependencyVampire
06/12/2024, 5:21 PMjava plugin, you already have consumable configurations and I don't think you can remove them.
That's why I said that the skipping might help.ephemient
06/12/2024, 5:26 PMconfigurations.all { isCanBeConsumed = false }Vampire
06/12/2024, 5:27 PMephemient
06/12/2024, 5:31 PMconfigurations.all { isVisible = false }
although that's something I have less experience messing around withVampire
06/12/2024, 5:35 PMCannot change the allowed usage of configuration ':mainSourceElements', as it was locked upon creation to the role: 'Consumable'.
This role permits the following usage:
Consumable - this configuration can be selected by another project as a dependency
Ideally, each configuration should be used for a single purpose.
Vampire
06/12/2024, 5:36 PMvisible flag name is misleading afair and does not do what it suggests it might do.Vampire
06/12/2024, 5:49 PMAlexander Gherschon
06/12/2024, 5:56 PMif (!rootProject.isInCompositeBuild)
include(":sample-app")
}Vampire
06/12/2024, 5:56 PMskip() also does not work for thatVampire
06/12/2024, 5:57 PMSomething likeYou could, but it is very questionable whether you should. 😄
ephemient
06/12/2024, 5:57 PMVampire
06/12/2024, 5:57 PMsample-app that also includes the build with library .
Then when the main build includes library, there is no sample-app to hideVampire
06/12/2024, 5:58 PMgradle.parent == null or something like thatAlexander Gherschon
06/12/2024, 5:58 PMAlexander Gherschon
06/12/2024, 5:58 PMephemient
06/12/2024, 5:59 PMVampire
06/12/2024, 5:59 PMephemient
06/12/2024, 6:00 PMAlexander Gherschon
06/12/2024, 6:00 PMVampire
06/12/2024, 6:01 PMAlexander Gherschon
06/12/2024, 6:01 PMVampire
06/12/2024, 6:01 PMVampire
06/12/2024, 6:01 PMAlexander Gherschon
06/12/2024, 6:02 PMAlexander Gherschon
06/12/2024, 6:02 PMephemient
06/12/2024, 6:02 PM// /settings.gradle
include("library", "feature-a")
// /sample-app/settings.gradle
includeBuild("..")
anybody working in /sample-app will see all of the root project too. but if you're working in / you don't see /sample-appVampire
06/12/2024, 6:03 PMVampire
06/12/2024, 6:03 PMAlexander Gherschon
06/12/2024, 6:03 PMVampire
06/12/2024, 6:04 PMVampire
06/12/2024, 6:04 PMAlexander Gherschon
06/12/2024, 6:04 PMVampire
06/12/2024, 6:05 PM