java - How to add a JAR file to an existing gradle project? -


i have jar file aspose cells java want add existing gradle project in intellij idea 2017.2.1.

if go view -> tool windows -> gradle, see gradle window don't know click. tried right-clicking on dependencies nothing happened. should click + sign? think not.

enter image description here

how do that?

  1. is okay add non-gradle way, i.e. clicking file -> project structure -> dependencies tab -> + sign?

  2. what gradle way of doing it? find build.gradle file edit? see few commits earlier having hard time finding way around ide. can see build.gradle file in windows explorer. should edit hand outside of ide?

compile files('/<absolute_path>/<dependency>.jar') or //put jar file in lib directory of project. compile filetree(dir: 'lib', includes: ['*.jar']) } 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -