Max
04/13/2025, 2:16 PMLayer rootPackage must be unique
rule.
I have many feature-modules in my project, and each feature module divided to api and impl submodules. So I have layers like:
val featureApi = Layer("FeatureApi", "com.example..feature..api.."),
val featureImpl = Layer("FeatureImpl", "com.example..feature..impl..")
I want to check, that my impl modules don't depend on other impl modules.
But I can't just do like this:
featureImpl.doesNotDependOn(featureImpl)
and even
featureImpl.doesNotDependOn(featureImpl.copy(name = "OtherFeatureImpl"))
So, question: Does my case supported in Konsist and how can I make this check?Vladimír Púpava
04/14/2025, 6:22 AMMax
04/14/2025, 7:59 AM