Reputation: 4784
When attempting to upgrade to Google Cloud Endpoints 2.0 using the gradle appengine plugin I run across a conflict with the configuration endpoints
. Gradle reports the error:
Error:Cannot add a configuration with name 'endpoints' as a configuration with that name already exists.
Switching to the newer appengine gradle plugin avoids the problem, except that it (1) doesn't support Android studio, (2) and has crappy JDO support (upgrade doc).
Does anyone have a solution to use the older plugin with Google Cloud Endpoints 2.0?
Upvotes: 0
Views: 140
Reputation: 4784
The problem occurs because the V2 endpoints-framework-gradle-plugin
and the gradle-appengine-plugin
both contain tasks named endpoints
. Removing the V2 plugin does not work, because the gradle-appengine-plugin
version does not support V2 Cloud Endpoints.
In the end, I had to migrate to the new appengine gradle plugin as suggested in the Android upgrade doc. This requires building and deploying from the command line and a custom task to handle JDO, but otherwise works fine.
Upvotes: 2