Reputation: 3552
I have to migrate a project from grails 1.3.5 to 2.2.4. In custom plugin there is a dependency to a class in main app.
class Comment {
...
Person person
...
}
Comment is a domain class in plugin, Person is a domain class in main app. The app runs well on 1.3.5, but fails on 2.2.4. IDEA hilights Person as not found class on both versions of grails. Any ideas why it's runs well on 1.3.5 but fails on 2.2.4?
Thanks!
Upvotes: 0
Views: 235
Reputation:
Not sure about Grails 1.3.5 but in 2.x is not possible to reference application classes in a plugin.
If you think about it, something is not right with your model, because a plugin should be an independent functionality, that can be plugged in any application.
Upvotes: 1