I have installed spring-security-core in a grails project, but for some reason, IDEA didn’t automatically pick up the jar files. I can deploy the app and run tests using the grails command line just fine… but IDEA still puts squiggly lines. Is there a way I can get IDEA to automatically pick up jars after I install plugins?
I have installed spring-security-core in a grails project, but for some reason, IDEA didn’t
Share
I’m not 100% what the real source of this problem is. To my knowledge, IntelliJ parses the BuildConfig.groovy inside plugins to configure dependencies. It seems, that it does not pickup the autogenerated dependencies.groovy. The packaged spring-security-core plugin just contains a dependencies.groovy and no BuildConfig.groovy.
I’ve added the following snippet to my app’s BuildConfig.groovy
With this, IntelliJ “knows” about the Spring Security jars.