leandro
01/17/2022, 6:25 PMtestShared
anywhere, actually. It’s quite a unique setup because I can only run it on JVM targets, so even having one depending on the other might be tricky because ArchUnit does not know about kotlin-multiplatform
pluginleandro
01/18/2022, 3:26 PMVampire
01/18/2022, 10:01 PMwithVariantReselection()
is only added in 7.5.
Or at least in 7.3.3 or 7.4 different code is necessary.wolf
01/19/2022, 8:39 AMwithVariantReselection()
.wolf
01/19/2022, 8:42 AMconfigurations {
create("archTestUpstreamClasses") {
isCanBeConsumed = false
attributes {
attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage.JAVA_API))
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, objects.named(LibraryElements.CLASSES))
attribute(Category.CATEGORY_ATTRIBUTE, objects.named(Category.LIBRARY))
}
}
}
Then you’d need to add a dependency on the project containing your architecture tests. There probably feature variants would be the easiest way to get you started.Vampire
01/19/2022, 8:45 AMwolf
01/19/2022, 8:56 AMVampire
01/19/2022, 9:46 AM