GoogleCloudPlatform / app-gradle-plugin

The library has moved to https://github.com/GoogleCloudPlatform/appengine-plugins/tree/main/app-gradle-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

App Engine deploy fails with an exception-when upgrading from java8-11

sudheer-palagiri opened this issue · comments

Task :services:appengineDeploy FAILED
--
253 | /google-cloud-sdk/bin/bq
254 | /google-cloud-sdk/bin/git-credential-gcloud.sh
255 | /google-cloud-sdk/bin/java_dev_appserver.sh
256 |  
257 |  
258 | Oct 27, 2020 11:57:59 AM java.util.prefs.FileSystemPreferences$1 run
259 | INFO: Created user preferences directory.
260 | Reading application configuration data...
261 | 2020-10-27 11:57:59.802:INFO::main: Logging initialized @872ms
262 | Oct 27, 2020 11:57:59 AM com.google.apphosting.utils.config.IndexesXmlReader readConfigXml
263 | INFO: Successfully processed /drone/src/github.com/nytm/sartre-sublink/modules/services/build/exploded/WEB-INF/datastore-indexes.xml
264 |  
265 |  
266 | Beginning interaction for module sublink...
267 | 0% Scanning for jsp files.
268 | 0% Warning: you are using the Java7 runtime with a Servlet 3.1 web.xml file.
269 | 0% The Servlet 3.1 annotations will be ignored and not processed.
270 | Success.
271 | Temporary staging for module sublink directory left in /drone/src/github.com/nytm/sartre-sublink/modules/services/build/staged-app
272 |  
273 | > Task :services:appengineStage
274 | > Task :services:setAppVersion UP-TO-DATE
275 | > Task :services:appengineDeploy FAILED
276 |  
277 | FAILURE: Build failed with an exception.
278 |  
279 | * What went wrong:
280 | Execution failed for task ':services:appengineDeploy'.
281 | > Deployment projectId must be defined or configured to read from system state
282 | 1. Set appengine.deploy.projectId = 'my-project-id'
283 | 2. Set appengine.deploy.projectId = 'GCLOUD_CONFIG' to use project from gcloud config.
284 | 3. Using appengine.deploy.projectId = 'APPENGINE_CONFIG' has been deprecated.
285 |  
286 | * Try:
287 | Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
288 |  
289 | * Get more help at https://help.gradle.org
290 |  
291 | BUILD FAILED in 46s
292 |  
293 | Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
294 | Use '--warning-mode all' to show the individual deprecation warnings.
295 | See https://docs.gradle.org/4.10/userguide/command_line_interface.html#sec:command_line_warnings
296 | 13 actionable tasks: 8 executed, 5 up-to-date
commented

There's is not enough information in here to debug. Was it previously working? What did you change? Please include as much detail as possible. Also you may want to act on the error message:

280 | Execution failed for task ':services:appengineDeploy'.
281 | > Deployment projectId must be defined or configured to read from system state
282 | 1. Set appengine.deploy.projectId = 'my-project-id'
283 | 2. Set appengine.deploy.projectId = 'GCLOUD_CONFIG' to use project from gcloud config.