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.
how do that?
is okay add non-gradle way, i.e. clicking file -> project structure -> dependencies tab -> + sign?
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
Post a Comment