最新的 appengine-gcs-client lib 产生 GCS Java API 弃用警告
latest appengine-gcs-client lib produces GCS Java API deprecation warning
GCS 文件 api 已于 2015 年 7 月 28 日关闭。
在我的开发服务器中,我收到以下警告:
The Google Cloud Storage Java API is deprecated and will soon be removed. Please use the Google Cloud Storage Client library instead. Migration documentation is available here: https://cloud.google.com/appengine/docs/java/googlecloudstorageclient/migrate
我已经从官方迁移文档中引用的 git 存储库下载了最新版本的 appengine-gcs-client。但是我的开发服务器仍然收到警告。
我检查了所有依赖项,但似乎对文件 api 的唯一引用位于 appengine-gcs-client 库本身内部。它用于LocalRawGcsService.java(我认为它只用于开发服务器)。
因为我没有在我的生产日志中看到弃用警告,所以我认为我没有遇到问题,但我很想知道为什么他们用那个警告惹恼我。
- 我是不是漏掉了什么重要的东西?
- 在开发服务器关闭服务后,我能否在我的生产环境 and/or 中使用 appengine-gcs-client 库?
如果您不使用 com.google.appengine.api.files.FileService
,则无需担心。您正确地注意到 GCS 客户端库中的本地 class 显然仍然在使用它。 github 项目中有一个 currently-open issue 来解决这个问题。
所以,请随意忽略该警告。
只是为了完整性:从 Google App Engine Java SDK 1.9.28 开始,文件 api 在开发服务器中被禁用。
在 appengine-gcs-client 库的 0.5+ 版本中,文件 api 已被替换。图书馆现在工作正常。可以在这里下载:http://mvnrepository.com/artifact/com.google.appengine.tools/appengine-gcs-client
GCS 文件 api 已于 2015 年 7 月 28 日关闭。 在我的开发服务器中,我收到以下警告:
The Google Cloud Storage Java API is deprecated and will soon be removed. Please use the Google Cloud Storage Client library instead. Migration documentation is available here: https://cloud.google.com/appengine/docs/java/googlecloudstorageclient/migrate
我已经从官方迁移文档中引用的 git 存储库下载了最新版本的 appengine-gcs-client。但是我的开发服务器仍然收到警告。 我检查了所有依赖项,但似乎对文件 api 的唯一引用位于 appengine-gcs-client 库本身内部。它用于LocalRawGcsService.java(我认为它只用于开发服务器)。
因为我没有在我的生产日志中看到弃用警告,所以我认为我没有遇到问题,但我很想知道为什么他们用那个警告惹恼我。
- 我是不是漏掉了什么重要的东西?
- 在开发服务器关闭服务后,我能否在我的生产环境 and/or 中使用 appengine-gcs-client 库?
如果您不使用 com.google.appengine.api.files.FileService
,则无需担心。您正确地注意到 GCS 客户端库中的本地 class 显然仍然在使用它。 github 项目中有一个 currently-open issue 来解决这个问题。
所以,请随意忽略该警告。
只是为了完整性:从 Google App Engine Java SDK 1.9.28 开始,文件 api 在开发服务器中被禁用。 在 appengine-gcs-client 库的 0.5+ 版本中,文件 api 已被替换。图书馆现在工作正常。可以在这里下载:http://mvnrepository.com/artifact/com.google.appengine.tools/appengine-gcs-client