Adding javax.mail jance to intellij library via gradle

I need to include the jar-mail-1.4.7 file in my intellij idea project library via gradle build. I added the name of the compilation repository to the build.gradle file, as shown below:

compile 'javax.mail: mail: 1.4.7'

Then I started my build and although there is no error during the build, I canโ€™t see the jar in my project library. I was thinking about creating a gradle, the bank will be automatically managed. Not sure if I need to try something else. I also tried running gradle: cleanIdea, but to no avail.

+7
java intellij-idea gradle
source share
1 answer

Finally, I was able to solve this problem. I returned all the changes to start again. Then follow these steps:

  • Add compile 'javax.mail:mail:1.4.7' depending on the build.gradle file.
  • Run gradle build , which will load the jar file for placement in the repositories.
  • Run gradle cleanIdea
  • Run gradle idea

This resolved all problems with cleanidea clearing the iml files for intellij and regenerating using the gradle idea command.

+9
source share

All Articles