GoogleCloudPlatform / app-gradle-plugin

The library has moved to https://github.com/GoogleCloudPlatform/appengine-plugins/tree/main/app-gradle-plugin
Apache License 2.0
153 stars 40 forks source link

Add gcloudMode option to deploy #356

Closed loosebazooka closed 5 years ago

loosebazooka commented 5 years ago

fixed #354

usage

appengine {
  deploy {
    ...
    gcloudMode = "beta"
  }
}
loosebazooka commented 5 years ago

Although I am wondering if I should have put this in the appengine {} configuration block directly?

loosebazooka commented 5 years ago

actually it looks like the beta component is installed automatically if you just use beta on the command line in gcloud beta app deploy. Gonna remove the component install section.

chanseokoh commented 5 years ago

Really? I tried gcloud alpha survey on the command line the other day and it prompted to install the alpha component. But maybe it doesn't prompt with --quiet and that is why it works in the plugin?

loosebazooka commented 5 years ago

I think beta and alpha are different in their nehavior, beta seems to trigger whether or not we're in quiet mode.

loosebazooka commented 5 years ago

Anyway, I reworked the whole thing around that assumption. Will confirm with the cloud SDK team when I Can.