title: Using Gradle to include my own Java library in a project
body: <p>Disclaimer: I'm very new to Gradle and Dependency Management. I tried reading the documentation but just couldn't get through the sheer amount of information. I also couldn't find anything useful to answer my question, so sorry if this has been answered before, I tried searching...</p>
  
  <p>So my situation is as follows: I have one Java project that's supposed to give me a standardized way of using program configurations using JSON files. This project has a dependency on Gson. So far so good, I simply added <code>compile 'com.google.code.gson:gson:2.6.2'</code> to that projects dependencies and all's fine, the library shows up as External Library in Idea, and I can use it and stuff.</p>
  
  <p>Now I want to use that project in other projects to make use of the configuration stuff. And I can not for the life of me figure out how to add the project or the library jar to other projects using Gradle.</p>
  
  <p>I tried things like copying the library jar to the libs folder of the projects to use it in and adding <code>compile files('./libs/myLibrary-0.0.1.jar')</code> to the dependencies list, or adding the jar as a library via the Project Structure thing in Idea. None of these methods worked, and I'm at my wits end.</p>
  
  <p>Any help would be appreciated.</p>