It seems like `dependsOn` is now (v0.17.0) changed...
# konsist
m
It seems like
dependsOn
is now (v0.17.0) changed from "may depend on" to "has to depend on". Is this intended?
I had checks where different kinds of API may access domain or DTO
Copy code
setOf(
    apiRest,
    apiJobs,
    apiInternal,
).forEach {
    it.dependsOn(domain, apiDto, usecases)
}
I e.g. don't have DTO in my jobs API yet
Copy code
Layer 'api.jobs' does not depends on 'api.dto' layer.
Layer 'api.internal' does not depends on 'domain' layer.
but they may access the DTOs. How would I describe this in v0.17?
i
I will take another look and I will prepare hotfix soon. BTW API has been updated in
0.17.0
to support sets. Now you cna do this:
Copy code
setOf(apiRest, apiJobs, apiInternal).dependsOn(domain, apiDto, usecases)
m
neat. appreciated 👌
Thank you 🙏
i
Fixed in 0.17.1