Jeff Lockhart
10/17/2022, 6:25 AMinternal
API of moduleA in moduleB.
4. moduleA and moduleB produce unique published artifacts.
I considered adding moduleA as a dependency to moduleB with exclude
for dependencyA, but #3 isn't possible this way.
Next I considered adding *moduleA*'s source directories to *moduleB*'s such that the same source files would be compiled along with *moduleB*'s API additions. But I ran into this IDE restriction, where "duplicate content root" error causes the source directories to be removed from moduleB.
As a workaround, I've added symlinks from moduleB to *moduleA*'s source directories. While this seems to work, I'm not convinced this is the best way to achieve the goals listed above. Are there other project configuration options I could consider?