Freitag, 4. Januar 2013

New year new IDE, start using Intellij 12

After one week of to start learning the Russian language on a Volkshochschule it's time to start using a new IDE: Intellij12.
One reason is to use same IDE as most of my colleagues which makes pair programming much easier. 
For my work normally I need a good Java/Groovy/SQL/Web-IDE with good refactoring support - that's the other reason to use Intellij - the excellent refactoring support.

Problem with groovy script in project paths...

One bigger issue I have is using Groovy script but not for the main build, only as helper for migration stuff etc.
So without any specific configuration I run into this compile conflict:

Groovyc: Exception in thread "main" java.lang.NoClassDefFoundError: groovy/lang/GroovyResourceLoader
   at java.lang.Class.getDeclaredMethods0(Native Method)
   at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
   at java.lang.Class.getMethod0(Class.java:2670)
   at java.lang.Class.getMethod(Class.java:1603)
   at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:110)
Caused by: java.lang.ClassNotFoundException: groovy.lang.GroovyResourceLoader
   at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
   ... 5 more


This should by solved by disabling the the Compiler on external builds, see: http://youtrack.jetbrains.com/issue/IDEA-95517

Besides this I add the groovy libs here:
"PlatformSettings->Global Libraries"
"+" and add: $groovy_home/lib/*