How do I make a Groovy Google App Engine project in Eclipse? I have both the Groovy and the App Engine plugins installed.
I’m already able to successfully make an App Engine or a Groovy project separately, but how do I make a project that is both?
I tried just making an App Engine project and then adding a Groovy class to it, but I get this error when I click Finish on the “Create a new Groovy class” dialogue:
Creation of element failed. Reason: groovytest does not exist
I did it recently according to this sequence:
Download Eclipse 3.5
Download Google App Engine
Install Groovy plugin for IDE
Install GAE plugin
In Eclipse choose New -> Web Application Project (uncheck “Use Google Web Toolkit” if you are not going to use it)
Right click on the new project Configure -> Convert to Groovy Project
Download Groovy GAE project template, unzip it
Right click on the project Import… -> General -> File System, browse to template project folder, check “Overwrite existing resources without warning”
Open war/WEB-INF/appengine-web.xml and change an application name to yours
Copy groovy-all.jar from Groovy Libraries to war/WEB-INF/lib
Right click on the build.groovy, Run As -> Web Application
Go to http://localhost:8888
To deploy choose Google -> Deploy to App Engine from a project context menu
FYI: GAE project template contains the hello.groovy file which is a kind of Groovlet.