use of com.google.cloud.tools.appengine.cloudsdk.CloudSdkAuth in project app-maven-plugin by GoogleCloudPlatform.
the class CloudSdkLoginMojo method execute.
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
try {
CloudSdk sdk = getAppEngineFactory().defaultCloudSdkBuilder().build();
new CloudSdkAuth(sdk).login();
} catch (AppEngineException ex) {
throw new RuntimeException(ex);
}
if (getServiceAccountKeyFile() != null) {
getLog().warn("serviceAccountKeyFile is configured and will be used instead of Cloud SDK auth " + "state.");
}
}
Aggregations