如何在标准环境下使用 Appengine Gradle 插件

How to use Appengine Gradle Plugin with standard environment

拖了很久,终于从gradle-appengine-plugin to the app-gradle-plugin. Although the documentation[1] calls for using an appengine-web file to configure the app, the plugin looks for an app.yaml的配置更新过来,好像是柔性环境特有的。有没有人有关于让插件使用 appengine-web 配置或为标准环境配置 app.yaml 的提示?谢谢。

原来是插件在查找appengine-web.xml时没有使用appEngineDirectory设置的问题。相反,它会在该目录中查找 app.yaml 文件,如果找不到 returns 则报错(即使 appengine-web.yaml 存在)。如果 appengine-web.xml 文件位于标准 WEB-INF 文件夹中,它会按预期工作。

如果我能弄清楚如何为 appengine-web.xml 使用自定义目录,我会更新。