Hello! Trying to declare an architecture test with...
# konsist
r
Hello! Trying to declare an architecture test with a package. Getting the error message
Invalid 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:
Copy code
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
.