How to upgrade to the GAE SDK?

I am thinking of updating my version of the GAE SDK (1.5.1 -> 1.5.4). However, I have never updated the SDK before, and I cannot find any tools provided by GAE to facilitate this task, and I do not know that GAE does this automatically.

I understand that I can simply download the new version of the SDK and reconfigure it manually according to my situation, but this process seems error prone and excessive. Is there a systematic or common way that most programmers do this?

+7
source share
3 answers

Delete (delete) the old SDK; install a new one. This is what I do on my personal (Linux) laptop. Employees who use MacOS do the same.

The only "reconfiguration" I found necessary was to use the Google Plugin for Eclipse, which had to be redone to copy the new Java banks to my WEB-INF / lib directories in Java projects. Python does not require any reconfiguration at all.

+5
source

Regarding the GAE SDK update, the production environment is automatically updated by Google. That is, whenever a new version is released, the production version will be updated to this new version. Therefore, you do not need to worry about the version working in a production environment.

As for the local test environment, a manual task is required to upgrade the version. Since @splix asked which language you use, the process may be slightly different. In my case, as a Java developer, we are using the Maven plugin here to handle all of this. So essentially, you need to update pom.xml to point to the correct version of GAE, and run mvn gae: unpack, the entire latest version will be downloaded and used by your local environment.

This process is also very convenient in the Eclipse plugin, since basically you need to update the Google plugin for Eclipse as what you did to install it. And after that, the local environment will pick up the latest version that she received.

I am not a guy in Python, so if you are after Python, my answer above will not help me. Sorry.

+3
source

If you are running Android Studio, you don’t need to download (directly from the Google download site) or delete anything. Just go to build.gradle (module:backend)

 dependencies { appengineSdk 'com.google.appengine:appengine-java-sdk:1.9.18' } 

Change the SDK version number (for example, from version 1.9.18) and synchronize the project (of course, you must be connected to the Internet). The latest version will be downloaded from the maven / jcenter repository.

0
source

All Articles