Reputation: 6115
I'm following Burt Beckwith's (Grails developer and author) use of Heroku as indicated here in Grails book. (See import statement at top of this link -- that's what's giving me problems).
I added the following to BuildConfig.groovy as Burt indicates:
runtime 'postgresql:postgresql:8.4-702.jdbc3' // in the dependencies section as described
compile ':heroku:1.0.1' // in the plugins section as described.
Then IntelliJ prompted me to update the IDE with the BuildConfig changes, which I did. I also exited and restarted IntelliJ to see if that might get rid of the import error for:
import grails.plugin.heroku.PostgresqlServiceInfo
It did not get rid of the import error, which then complains when I do the addition of:
PostgresqlServiceInfo info = new PostgresqlServiceInfo()
in the Bootstrap class as is shown in the example. What am I doing wrong / how do I fix this kind of stuff?
Upvotes: 0
Views: 159
Reputation: 402523
In IDEA you need to open Tools
| Grails
| Plugins
, select Heroku plug-in and click Apply Changes.
This will configure a module for the plug-ins and add this module to the dependencies of your application.
Upvotes: 1
Reputation: 50285
Works for me. :-)
Upvotes: 1