Slackbot
04/22/2022, 4:43 PMephemient
04/22/2022, 4:57 PMsrc/main/java/module-info.java then I think it'll force using JARs (but this has other effects as well)Thomas Broyer
04/22/2022, 5:00 PMimplementation(projects.b) {
attributes {
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, objects.named(LibraryElements.JAR))
}
}Jason Kolovsky
04/22/2022, 5:26 PMThomas Broyer
04/22/2022, 5:37 PMobjects.named(LibraryElements.JAR) is Kotlin.
As for the documentation, it's here and here. You can run ./gradlew :b:outgointVariants to see the variants of project B, and then choose the appropriate attribute to alter the variant selection (in this case, per dependency, rather than per-configuration as it's emphasized in the docs)