rocketraman
03/04/2025, 2:31 PMInvalid package definition for layer 'Core'. To include subpackages, the definition must end with '..'. Current definition: foo.core
. But I don't want to include sub-packages so the declaration should be correct. My full use case is this:
val core = Layer("Core", "foo.core")
val coreApi = Layer("CoreApi", "foo.core.api..")
Konsist.scopeFromProduction()
.assertArchitecture {
core.dependsOn(coreApi)
coreApi.dependsOnNothing()
}
but this test fails because foo.core
is an invalid package definition, and using foo.core..
includes core.api
.rocketraman
03/04/2025, 2:56 PM