GoogleCloudPlatform / app-gradle-plugin

The library has moved to https://github.com/GoogleCloudPlatform/appengine-plugins/tree/main/app-gradle-plugin
Apache License 2.0
153 stars 40 forks source link

mutli module documentation #87

Closed loosebazooka closed 6 years ago

loosebazooka commented 7 years ago

Add documentation for users transitioning from EAR projects

ghost commented 7 years ago

Any progress on the documentation so far? #86 is not very specific in the details and keeps you clueless.

loosebazooka commented 7 years ago

@simci-wendeldw coming back to this. What exactly are you looking for? For multi-module, local run is documented here (in some primitive form) : https://github.com/GoogleCloudPlatform/app-gradle-plugin/blob/master/USER_GUIDE.md

For deploy, since deployments don't happen atomically, there isn't too much of a reason to try to emulate that. You can just deploy each one on it's own, or chain them together in your own gradle command.

ghost commented 7 years ago

okay. I'm working with android studio. (intellij)

If I have two modules as follow, how do I tell that one is the default service and the other a sub?

backend/build/exploded-app backend/build/staged-app backend/src/main/java backend/src/main/webapp backend/src/main/webapp/WEB-INF backend/src/main/webapp/WEB-INF/appengine-web.xml

loosebazooka commented 7 years ago

@simci-wendeldw I only see one module backend here?

ghost commented 7 years ago

I figured it out. It is basically very simple. Create another module and add the <service>name</service> tag to appengine-web.xml. Follow with a gcloud deploy.