簡體   English   中英

無法解析配置“:classpath”的所有文件。 無法解析 io.quarkus:gradle-application-plugin:2.10.2.Final

[英]could not resolve all files for configuration ':classpath'. Could not resolve io.quarkus:gradle-application-plugin:2.10.2.Final

我正在嘗試在 AWS 中部署 quarkus 應用程序,但構建失敗並出現以下錯誤。 有人可以幫忙嗎? 我使用的Gradle版本是7.5

謝謝

下面是我的 build.gradle 文件

plugins {
    id 'java'
    id 'io.quarkus'
}

dependencies {
    implementation enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}")
    implementation 'io.quarkus:quarkus-arc'
    implementation 'io.quarkus:quarkus-resteasy-jackson'
    implementation 'io.quarkus:quarkus-resteasy'
    implementation 'io.quarkus:quarkus-rest-client'

}

group 'test.quarkus'
version '2.10'

java {
    sourceCompatibility = JavaVersion.VERSION_11
    targetCompatibility = JavaVersion.VERSION_11
}

compileJava {
    options.encoding = 'UTF-8'
    options.compilerArgs << '-parameters'
}

compileTestJava {
    options.encoding = 'UTF-8'
}




**

下面是錯誤。

**

無法解析 io.quarkus:gradle-application-plugin:2.10.2.Final。 Required by: project: > io.quarkus:io.quarkus.gradle.plugin:2.10.2.Final > No matching variant of io.quarkus:gradle-application-plugin:2.10.2.Final was found. 消費者被配置為查找與 Java 8 兼容的庫的運行時,打包為 jar,其依賴項在外部聲明,以及屬性 'org.Z8ED1A771BC236C287AD93C699BFDD2' 值為 7'7.53C699BFDD2。 Variant 'apiElements' capability io.quarkus:gradle-application-plugin:2.10.2.Final declares a library, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8 - Other compatible attribute: - Doesn't say anything about org.gradle.plugin.api-version (required '7.5') - Variant 'javadocElements' capability io .quarkus:gradle-application-plugin:2.10.2.Final 聲明了一個組件的運行時,以及它的外部聲明的依賴關系: - 不兼容,因為這個組件聲明了文檔並且消費者需要一個庫 - 其他兼容的屬性: - 沒有說anything about its target Java version (required compatibility with Java 8) - Doesn't say anything about its elements (required them packaged as a jar) - Doesn't say anything about org.gradle.plugin.api-version (required '7.5 ') - 變體 'runtimeElements' 功能 io.quarkus:gradle-application-plugin:2.10.2.Final 聲明了一個庫的運行時,打包為 jar,並且它的依賴項聲明了一個外部兼容的組件: - 不兼容,因為此組件聲明了一個組件兼容使用 Java 11 並且消費者需要與 ZD523878 兼容的組件 80E1EA22817A72D3759213819Z 8 - Other compatible attribute: - Doesn't say anything about org.gradle.plugin.api-version (required '7.5') - Variant 'sourcesElements' capability io.quarkus:gradle-application-plugin:2.10.2.Final聲明一個組件的運行時,以及它的外部聲明的依賴關系: - 不兼容,因為這個組件聲明了文檔並且消費者需要一個庫 - 其他兼容的屬性: - 沒有說明它的目標 Java 版本(需要與 Java 8 兼容) -沒有說明它的元素(需要將它們打包為 jar) - 沒有說明 org.gradle.plugin.api-version (需要“7.5”)

對不起,我的朋友,耽擱了! 就我而言,我將 JAVA_HOME 和 JAVA JDK 的環境變量從 Java 8 更改為 JAVA 11。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM