Prevent a Package Depending Upon Another

Enforce architecture rules, such as data access layers not depending upon UI layers.

Kotlin developers can configure an inspection to define illegal package dependencies, which can prevent code from accidentally depending upon the wrong packages, for example the UI layer talking directly to the data access layer.


Related Resources

Your First AI Agent in Kotlin
Your First AI Agent in Kotlin
Get started with Koog today!
Exposed inline value classes for Java
Exposed inline value classes for Java
Use value classes from Java code with Kotlin 2.2
Nested type aliases in Kotlin 2.2
Nested type aliases in Kotlin 2.2
Use type aliases inside other structures