Ide-java how do I use additional libraries in a gradle project


#1

Hi,

I have installed atom-ide-ui and ide-java and have built several gradle projects that build, test and run fine, including building fat jars with dependencies.

The problem I am having is that when I use libraries such as slf4j etc. I find these are not found by the editor and are marked as not found. How do I/ where do I add these so that ide-java will find the libraries and methods for gradle projects

Update: I have found out a way of solving my problem and that was by adding to the .classpath file, I had tried this before but I had not specified a type of ‘lib’ but when I did and I reloaded the source file it found the libraries ok.

<classpathentry kind="lib" path="../myjars/slf4j-api-1.7.25.jar"/>
<classpathentry kind="lib" path="../myjars/slf4j-simple-1.7.25.jar"/>

Not sure if this is the correct way but it seems to work