https://kotlinlang.org logo
#konsist
Title
# konsist
p

PoisonedYouth

12/07/2023, 3:32 PM
Why is it not possible to specify a Layer for an architecture assert by
..application..
and instead I need to specify
com.poisonedyouth.sample.application..
? The first one gives below exception:
Copy code
com.lemonappdev.konsist.core.exception.KoPreconditionFailedException: Layer application must be defined by package ending with '..'. Now: ..application.. .
	at com.lemonappdev.konsist.api.architecture.Layer.<init>(Layer.kt:19)
	at com.poisonedyouth.springhexagonalarchitecture.architecture.ArchitectureTest$dependencies of root packages are correct$1.invoke(ArchitectureTest.kt:13)
	at com.poisonedyouth.springhexagonalarchitecture.architecture.ArchitectureTest$dependencies of root packages are correct$1.invoke(ArchitectureTest.kt:12)
	at com.lemonappdev.konsist.core.architecture.KoArchitectureAssertionCore.instanceDependencyRules(KoArchitectureAssertionCore.kt:37)
	at com.lemonappdev.konsist.core.architecture.KoArchitectureAssertionCore.assertArchitecture(KoArchitectureAssertionCore.kt:11)
	at com.lemonappdev.konsist.api.architecture.KoArchitectureCreator.assertArchitecture(KoArchitectureCreator.kt)
p

PoisonedYouth

12/08/2023, 5:58 AM
Thanks for linking to an existing issue. I did not recognize this one.
🙌 1
4 Views