Adam
09/19/2025, 7:18 PMfoo-lib publishes text files to GAV org.demo:foo-lib-text and repo path org/demo/foo-lib-text/, and json files to org.demo:foo-lib-json with path org/demo/foo-lib-json/. The main variant is published to org/demo/foo-lib/.
Is this possible? I tried adding feature variants but they use the same directory, but with a different directory.Adam
09/19/2025, 9:07 PMorg.gradle.api.component.ComponentWithVariants to a component.
Gradle handles ComponentWithVariants specially here so they're published as variants in a different Maven repo directory, and linked to with a relative URL.
It's pretty difficult to just quickly create a demo using these internal APIs, so I won't bother.Adam
09/20/2025, 6:28 AMAdam
09/20/2025, 6:40 AM