how to create jar file in gradle project code example Example: adding jar file gradle dependencies { compile fileTree(dir: 'libs', include: '*.jar') }