Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to make use of Grails Dependencies in your IDE
    primarykey
    data
    text
    <p>So I <a href="https://stackoverflow.com/questions/1867064/grails-and-local-maven-dependencies">finally</a> got my dependencies working with Grails. Now, how can my IDE, eg IntelliJ or Eclipse, <strong>take advantage</strong> of it? Or do I really have to manually manage what classes my IDE knows about at <em>"development time"</em>?</p> <p>If the <code>BuildConfig.groovy</code> script is setup right (<a href="https://stackoverflow.com/questions/1867064/grails-and-local-maven-dependencies">see here</a>), you will be able to code away with vi or your favorite editor without any troubles, then run <code>grails compile</code> which will resolve and download the dependencies into the <a href="https://stackoverflow.com/questions/1867838/clearing-grails-dependency-cache/1867959#1867959">Ivy cache</a> and <strong>off you go</strong>... </p> <p>If, however, you are using an IDE like Eclipse or IntelliJ, you will need the dependencies at hand <em>while coding</em>. Obviously - as these animals will need them for the "real time" error detection/compilation process.</p> <p>Now, while it is <strong>certainly possible</strong> to code with all the classes shining up in bright red all over the place that are unknown to your IDE, it is certainly <strong>not much fun</strong>...</p> <p>The Maven support or whatever it is officially called lives happily with the pom file, no extra "jar directory" pointers needed, at least in IntelliJ. <strong>I would like to be able to do the same with Grails dependencies</strong>. </p> <p>Currently I am defining them in the <code>BuildConfig.groovy</code> and additionally I copy/paste the current jars around on my local disk and let the IDE point to it. </p> <p>Not very satisfactory, as I am working in a highly volatile project module environment with respect to code change. And this situation ports me directly into <strong>"jar hell"</strong>, as my "develop- and build-dependencies" easily get out of sync and I have to manage manually, that is, with my brain...</p> <p>And <strong>my brain should be busy with other stuff</strong>...</p> <p>Thanks! Raoul</p> <p>P.S: I'm currently using Grails 1.2M4 and IntelliJ 92.105. But <strong>feel free to add answers on future versions of Grails and different, future IDEs, as the come in</strong>...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload