Community
Participate
Working Groups
It is not possible to exclude either source folders of packages from being exported to other projects. This was reported before in bug 29865 (and some others). Those where solved by allowing import restrictions on both libraries and projects. While this is a useful feature, and can have the same result, it's not quite the same as an export restriction. It would be very convenient to be able to define these restrictions in a single location; at the same location as the actual code. The current solutions requires me to add the restriction to all the depending project. A workaround is to create a project B, make it depend on the actual project A, punt restrictions on this import, then export project A. Project C, D, and E can then depend on B instead of A. However, this doubles the amount of projects and feels really wrong.