小编Mzo*_*tni的帖子

"appengine.applications.get"权限是必需的

我正在尝试使用gradle部署我的第一个应用引擎spring引导项目,当我运行"gradle appengineDeploy"时,我遇到了以下错误:

ERROR: (gcloud.app.deploy) Error Response: [403] Operation not allowed
Details: [
  [
    {
      "@type": "type.googleapis.com/google.rpc.ResourceInfo",
      "description": "The \"appengine.applications.get\" permission is required.",
      "resourceType": "gae.api"
    }
  ]
]
Run Code Online (Sandbox Code Playgroud)

这是我的build.gradle:

    buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.2.RELEASE")
        classpath("com.google.cloud.tools:appengine-gradle-plugin:+")
    }
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'com.google.cloud.tools.appengine'
jar {
    baseName = 'gs-spring-boot'
    version =  '0.1.0'
}
repositories {
    mavenCentral()
    maven {
      url 'https://maven-central.storage.googleapis.com'
    }
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies …
Run Code Online (Sandbox Code Playgroud)

google-app-engine spring-boot gcloud gcp

9
推荐指数
2
解决办法
2983
查看次数

标签 统计

gcloud ×1

gcp ×1

google-app-engine ×1

spring-boot ×1