मैं Gradle का उपयोग कर मेरी पहली एप्लिकेशन इंजन वसंत बूट परियोजना को तैनात करने की कोशिश कर रहा हूँ और मैं निम्न त्रुटि में चल रहा आवश्यक है जब मैं चलाने "Gradle appengineDeploy":"appengine.applications.get" अनुमति
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"
}
]
]
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
}
}
कृपया मुझे पता आगे बढ़ने के लिए कैसे करते हैं:
यहाँ मेरी build.gradle है।
ऐसा लगता है कि आप इस परियोजना के लिए तैनात करने के लिए अधिकार नहीं है। प्रोजेक्ट का कौन सा खाता है, और आप किस खाते से तैनात हैं? –
मैं उसी खाते के साथ तैनाती कर रहा हूं जो प्रोजेक्ट – Mzouitni
का मालिक है यदि आपके स्थानीय gcloud कॉन्फ़िगरेशन में प्रोजेक्ट आईडी Google क्लाउड में कंसोल में प्रोजेक्ट आईडी से मेल नहीं खाता है, तो यह उसी त्रुटि संदेश को फेंकता है –