9
在控制台使用 ./gradlew build 命令时,出现以下报错
project structure:
gradle:
javac
Relevant log outputFAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'plugin-starter'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve io.github.guqing.plugin:gradle-plugin-halo:0.0.6-SNAPSHOT.
Required by:
project : > io.github.guqing.plugin-development:io.github.guqing.plugin-development.gradle.plugin:0.0.6-SNAPSHOT:20221129.041856-6
> No matching variant of io.github.guqing.plugin:gradle-plugin-halo:0.0.6-SNAPSHOT:20221129.041856-11 was found. The consumer was configured to find a runtime of a library compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.4' but:
- Variant 'apiElements' capability io.github.guqing.plugin:gradle-plugin-halo:0.0.6-SNAPSHOT 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 17 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.4')
- Variant 'runtimeElements' capability io.github.guqing.plugin:gradle-plugin-halo:0.0.6-SNAPSHOT declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component compatible with Java 17 and the consumer needed a component compatible with Java 8
- Other compatible attribute:
- Doesn't say anything about org.gradle.plugin.api-version (required '7.4')
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
Additional information
当我使用直接在md中点击 ./gradlew pnpmInstall 时,可以正常跑起来
但是放在 terminal中即报上述错误
希望得到大佬的解答