Fork me on GitHub

do you use a lot of local libraries as well with polylith? We have some violations like the one bellow:

Error 101: Illegal dependency on namespace document.specs in annotator.specs. Use document.interface instead to fix the problem.
I don't think the specs should be (re-imported) in an interface to be exposed. Any recommendations on how to handle things like this?


If annotator.specs requires the document.specs, those specs needs to be exposed by an interface of the document component. You could have more than one interface file, such as document.interface and document.interface.specs. You can check out


will try it. looks good.


We have moved our Specs into <top-ns>.<component>.interface.specs as we've refactored our codebase. That's worked very well for us.


thanks for confirming

Braden Shepherdson20:12:01

I suppose it's not really possible to split a multimethod across components.

Braden Shepherdson20:12:15

or is there some trick to re-exporting them that I don't know about?

Joshua Suskalo21:12:55

You can for sure, you just have to (somewhere that gets loaded) require the namespaces that define the implementations for them to be included.


expose a function and a register-impl function?