How could I configure a Grails application in a way that run-app and war would take into account some external source path ../external/src?
I’d like not creating a separate grails plugin for that.
UPD. Thanks to Ian Roberts, there is a solution. But there is an additional wish appeared. I want that external source (which is large enough) would be used for searching for missed classes only. Not like everything from there is put into the *.war now. (That could be achieved with a jar optimizer at least.)
The list of source directories to be compiled is a property of the
projectCompiler, which you can add to in a suitable_Events.groovyblock. Try this: