I have 2 plugins - plugin A and plugin B.
Plugin B contains a domain class.I have then used the command - grails package-plugin on the plugin B.
I have declared the plugin dependency in the buildconfig.groovy of plugin A like below:
plugins {
build(":release:3.0.1",
":rest-client-builder:1.0.3") {
export = false
}
compile ":plugin-b:0.1"
}
I have created a service class in plugin A, which uses the domain class from plugin B. Now, When I try to refresh-dependencies on plugin A / or do a package-plugin on plugin A, it gives me error that it is not able to find the domain class from plugin b.
Any one has any idea if I am missing anything here?
You can tell grails that plugin A depends on plugin B by adding a dependsOn
to plugin A.
class APlugin {
def dependsOn = [B : "<version>"]
}
See Plugin load order in the Grails documentation.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.