Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Migrating to Google Cloud Endpoints v2

I am currently using Cloud Endpoints v1 in an existing application, but I would like to update it to v2 for App Engine in Java. I have reviewed the migration guide, but this only provides steps for migrating a Maven project. I am not using Maven, but I am using the Java App Engine SDK and Google Eclipse plugin to develop, test, and deploy my endpoints. I am having trouble getting v2 of the Cloud Endpoints Framework to run due to conflicts with the existing dependencies in the App Engine SDK. How can I override the v1 dependencies in the App Engine SDK so that I can migrate to v2? Is this possible, or should I convert my project to a Maven project?

like image 730
Ken Avatar asked Feb 14 '17 19:02

Ken


1 Answers

I believe GPE is deprecated. However, you should be able to right click on your App Engine project, select Build Path > Configure Build Path, and add the endpoints-framework JAR under the Libraries tab. Make sure to go to Order and Export and move the endpoints-framework above the App Engine SDK, or you're likely to encounter issues.

like image 121
saiyr Avatar answered Sep 18 '22 07:09

saiyr