App Engine Web Project
Built Using Gradle and Deployed to Google App Engine (GAE) with Gradle GAE Plugin
This is a very basic web project that simply calls a servlet that writes a string to output stream.
The functionality isn't the focus, the project is just to show the basic setup required to develop a web project using the following:
- Eclipse - including the Spring Tool Suite with Gradle support
- Gradle - including the GAE plugin
- Local Maven Repo
The Eclipse GAE pluign - http://code.google.com/eclipse/ -
was not used to create this project since the layout differs from the default Gradle web app project layout.
While the Eclipse GAE plugin offers support for running the app in the local GAE dev server, the Gradle GAE plugin
- https://github.com/bmuschko/gradle-gae-plugin - also
offers support for this so the Eclipse GAE plugin is not required for developing this app.
Tests
Configuring the Application
Running the App
- To run in local GAE dev server using Eclispe GAE plugin you need to add the GAE nature to the Eclispe
.project file:
com.google.appengine.eclipse.core.gaeNature
This allows you to use Debug As | Web Application on the project to run in the local dev server. This runs the
app on port :8888 by default
- The Gradle GAE plugin has the gaeRun and gaeStop tasks available to run the app in the local dev server.
The gaeRun task calls the dev_appserver command which runs the app on port :8080 by default, as documented at
-
http://code.google.com/appengine/docs/java/tools/devserver.html.
headline