grailsgrails-2.5

Grails 2.5.0 - access classes in maven dependency


I need to access some features of Jedis that aren't available in the Redis Plugin. I added compile "redis.clients:jedis:2.8.0" to my dependencies in BuildConfig.groovy, but my IDE is showing that the Jedis classes are still unavailable. How do I access those classes?


Solution

  • You have to tell your IDE that there is a change in your classpath structure.

    Whichever IDE you are using, there should be a way to run any command. Like for IntelliJ: Run -> Run Command.

    Open that dialog and run the command: grails refresh-dependencies