Manage source and javadoc for Grails auto dependencies in IntelliJ IDEA?

How to connect source and javadoc to IntelliJ IDEA libraries, which are automatically associated with Grails dependency resolution and are not explicitly specified in the IDEA project settings?

For example, in BuildConfig.groovy

grails.project.dependency.resolution = { repositories { mavenRepo "http://oss.sonatype.org/content/repositories/releases/" } dependencies { runtime 'org.elasticsearch:elasticsearch:0.17.7' } } 

Is there any way for IDEA to automatically pick up the source and javadoc from the Maven repository?

+4
source share
3 answers

IDEA automatically connected the source to the project plug-in module. JavaDoc can be manually connected to the plug-in module in the project structure interface at:

File → Project Structure → Project Settings → Modules → project name-grailsPlugins → Paths → JavaDoc

IDEA project structure

+3
source

not an answer, but an idea

You can connect to the gant 'grails integrate-with' script and add this function yourself. $GRAILS_HOME/scripts/IntegrateWith.groovy uses some templates for .ipr and .iml that can be changed.

At some point in the future, it is assumed that gradle will be used to create Grails projects, but there is still a long way to go.

+1
source

IDEA 11 will skillfully search and download sources for any bank. The search is performed using https://oss.sonatype.org/ using artifactId and the version obtained on behalf of jar.

+1
source

All Articles