Tôi cố gắng để triển khai dự án khởi động động cơ mùa xuân ứng dụng đầu tiên của tôi sử dụng gradle và tôi chạy vào các lỗi sau khi tôi chạy "gradle appengineDeploy":Các "appengine.applications.get" phải xin phép
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"
}
]
]
Đây là build.gradle của tôi:
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 {
compile("org.springframework.boot:spring-boot-starter-web")
// tag::actuator[]
compile("org.springframework.boot:spring-boot-starter-actuator")
// end::actuator[]
// tag::tests[]
testCompile("org.springframework.boot:spring-boot-starter-test")
// end::tests[]
//compile("com.google.cloud.tools:appengine-maven-plugin:1.0.0")
//appengineSdk 'com.google.appengine:appengine-java-sdk:1.9.50'
compile('com.google.appengine:appengine:+')
}
appengine {
deploy { // deploy configuration
stopPreviousVersion = true // default - stop the current version
promote = true // default - & make this the current version
}
}
Vui lòng cho tôi biết cách tiếp tục.
Âm thanh như bạn không có quyền để triển khai dự án này. Tài khoản nào sở hữu dự án và bạn đang triển khai tài khoản nào? –
Tôi đang triển khai với cùng một tài khoản sở hữu dự án – Mzouitni
Nếu Id dự án trong cấu hình gcloud cục bộ của bạn không khớp với Id dự án trong bảng điều khiển trong google cloud, nó sẽ gửi cùng một thông báo lỗi –