title: How to create common gradle project used by other projects
body: <p>I have a gradle project that consist of 3 parts: client, common and service.
  There are some classes that are used both in client project and service project, therefore I wanted to create a common module and build a jar from it and then import it in other two projects as a library. I put shared classes in common module, I didnt create the main class because I want to project to only provide other classes, so it looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/GbHLr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GbHLr.png" alt="enter image description here"></a></p>
  
  <p>Then I tried to import it in other project as a library and build them, but when I try to build it with gradle it throws a bunch of errors about the classes from common module:
  <a href="https://i.stack.imgur.com/EL5tt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EL5tt.png" alt="enter image description here"></a></p>
  
  <p>I couldnt find any tutorials online how to make a common module with gradle. Any help would be appreciated!</p>