I'm trying to build an Grails plugin on top of Resources Plugin. Basically it's just a ResourceMapper. So, I need to use MapperPhase enum.
I've tried to add following into BuildConfig.groovy:
plugins {
build(":tomcat:$grailsVersion",
":release:2.0.3",
":rest-client-builder:1.0.2") {
export = false
}
runtime(":resources:1.1.6")
}
tried also compile(":resources:1.1.6"), but same result
As I see, it's pretty standard practice for resources based plugins, and should works. Btw, when I'm trying to run main application, it fails with:
| Error Compilation error: startup failed:
***/XXXResourceMapper.groovy: 5: unable to resolve class org.grails.plugin.resource.mapper.MapperPhase
@ line 5, column 1.
import org.grails.plugin.resource.mapper.MapperPhase
And also, I'm using Intellij IDEA, and it can't resolve this enum as well.
How I should specify dependency to Resources Plugin at this case?
PS In main Grails application, that uses this plugin, i'm using local plugins definition (like grails.plugin.location.'XXX-resources' = 'XXX'). If it's matter.