已经换成 jdk 17 还是报下面的错误,有明白的大佬吗。
PS D:\Program Files\project\halo\halo-plugin-hello-world> ./gradlew.bat build
FAILURE: 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 run.halo.gradle:halo-gradle-plugin:0.0.7.
Required by:
project : > run.halo.plugin.devtools:run.halo.plugin.devtools.gradle.plugin:0.0.7
> No matching variant of run.halo.gradle:halo-gradle-plugin:0.0.7 was found. The consumer was configured to find a library for use during runtime, compatible with Java 8, packaged as a jar, and its dependencies declared ex
ternally, as well as attribute 'org.gradle.plugin.api-version' with value '8.0' but:
- Variant 'apiElements' capability run.halo.gradle:halo-gradle-plugin:0.0.7 declares a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component for use during compile-time, compatible with Java 17 and the consumer needed a component for use during runtime, compatible with Java 8
- Other compatible attribute:
- Doesn't say anything about org.gradle.plugin.api-version (required '8.0')
- Variant 'runtimeElements' capability run.halo.gradle:halo-gradle-plugin:0.0.7 declares a library for use during runtime, 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 '8.0')
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.