Monday, September 13, 2010

Groovy project on Goolge App Engine in Eclipse

So that's how you can create a Groovy "Hello World" project in Eclipse:
1. Download Eclipse
2. Download Google App Engine
3. Install Groovy plugin for IDE
4. Install GAE plugin
5. In Eclipse choose New -> Web Application Project (uncheck "Use Google Web Toolkit" if you are not going to use it)
6. Right click on the new project Configure -> Convert to Groovy Project
7. Download Groovy GAE project template, unzip it
8. Right click on the project Import... -> General -> File System, browse to template project folder, check "Overwrite existing resources without warning"
9. Open war/WEB-INF/appengine-web.xml and change application name to yours
10. Copy groovy-all.jar from Groovy Libraries to war/WEB-INF/lib
11. Right click on the build.groovy, Run As -> Web Application
12 .Go to http://localhost:8888
13. 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