title: How to share code from one project to another and control what will be compiled to the JAR file?
body: <p>I want to create a cross-project library that allows me to have a common code on a project and replicate it on other projects where I want to use that cross-project library code.</p>
  <p>I'm programming a software plugin, that I need to export as a &quot;JAR File&quot; with that cross-project library packages inside, but NOT the rest of the dependencies.</p>
  <p>Is there any better way? How can I do it?</p>