Slackbot
09/15/2023, 2:21 PMThomas Broyer
09/15/2023, 2:57 PMVampire
09/15/2023, 2:58 PMFlorian Eula
09/15/2023, 3:05 PMFlorian Eula
09/15/2023, 3:07 PM2023-09-15T17:05:57.955+0200 [DEBUG] [org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolver] Metadata file found for module 'com.company.foundation:uicomponents:1.2.0-SNAPSHOT' in repository 'MavenLocal'.
Yep, metadata is definitely found. Working off of mavenLocal() for now, but artifactory and ~/.m2 contain the same files, and the resolution problem happens no matter the source.
The squareTheme configuration gets visited first, and the roundTheme configuration gets to reuse the module metadata, but surely it wouldn't be using the wrong one, right?
Found cached version of changing module 'com.company.foundation:uicomponents:1.2.0-SNAPSHOT' in 'MavenLocal'
Using cached module metadata for module 'com.company.foundation:uicomponents:1.2.0-SNAPSHOT' in 'MavenLocal'Daniel B Duval
09/15/2023, 5:41 PMimplementation(project()) and from there either publish all or publish a variant. It works for us as our use case for this as we require the latitude both variants in the dimension to be different version numbers.
Project A would then define this as we would publish one for square and one for round. squareThemeImplementation(libs.square.theme) and roundThemeImplementation(libs.round.theme)