开发者

How to go about updating the GAE SDK?

开发者 https://www.devze.com 2023-04-08 02:03 出处:网络
I\'m thinking about updating my version of the GAE SDK (1.5.1 -> 1.5.4). However, I\'ve never updated a SDK before and I can\'t find any tools provided by GAE to facilitate this task nor am I aware th

I'm thinking about updating my version of the GAE SDK (1.5.1 -> 1.5.4). However, I've never updated a SDK before and I can't find any tools provided by GAE to facilitate this task nor am I aware that GAE does this automatically.

I realize I could just download the new version of the SDK and reconfigure it manually to suit my situation but this process seems error prone and excessive. Is there开发者_如何学编程 a systematic or conventional way that most programmers accomplish this task?


Delete (uninstall) the old SDK; install the new one. That's what I do on my personal (Linux) laptop. Co-workers who use MacOS do the same.

The only "reconfiguration" I've found necessary is when using the Google Plugin for Eclipse, which needs to be prodded to copy the new Java jars into my Java projects' WEB-INF/lib directories. Python hasn't required any reconfiguration at all.


In terms of the GAE SDK updating, the production environment is updated automatically by Google. That is to say whenever a new version being released, the production version will be updated to that new version. So you never need to worry about the version being running in production environment.

Regarding the local testing environment, some manual task is needed to update the version. As @splix asked what language you are actually using, the process may vary a bit. In my case as a Java developer, we are here using Maven plugin to handle all this stuff. So essentially what you need to do is update your pom.xml to point to the right version of GAE, and run mvn gae:unpack, all latest version will be downloaded and used by your local environment.

This process is also pretty handy in Eclipse plugin, as basically what you need to do is update the Google Plugin for Eclipse as what you had done to install it. And after that, the local environment will pick up the latest version it got.

I am not a Python guy, so if you are after Python, my above answer my not be helpful. Sorry about that.


If you are working with 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 version number of the SDK (from 1.9.18 for example) to the latest and perform project sync (Of course you have to be connected to the Internet). The latest version will be downloaded from the maven/jcenter repository.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号