Giuseppe Barbieri
03/10/2024, 1:51 PMComponentMetadataRule
to properly manage that
Like here
dependencies {
// Activate the "LoggingCapability" rule
components.all(LoggingCapability::class.java)
}
class LoggingCapability : ComponentMetadataRule
if I do this directly in a platform, would this be applied as I expect on the consumers applying that platform or shall this rule be defined and activated on the consumers (either directly or with a plugin)?Thomas Broyer
03/10/2024, 5:01 PMThomas Broyer
03/10/2024, 5:04 PMrejectAll()
constraint on the old GAV in your platform to make sure there are appropriate rules in the consuming projects (if you haven't already added capabilities to your dependency to trigger a resolution error)
edit: ha, should have clicked the link before adding that comment, you probably already have a capability that triggers an error if you want to add a capability rule to handle such conflicts 😉Giuseppe Barbieri
03/10/2024, 5:35 PMPlatforms only express dependency constraints. Metadata rules or other resolution rules need to be added to each project.as I imagined, thanks for clearing that
Giuseppe Barbieri
03/10/2024, 5:36 PMThomas Broyer
03/10/2024, 5:53 PM