You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When upgrading the new release if running Gradle with JDK 11 (build scan). If using 17 then it works fine (build scan).
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 11
Configuration on demand is an incubating feature.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'caffeine'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve net.ltgt.gradle:gradle-errorprone-plugin:3.0.0.
Required by:
project :> No matching variant of net.ltgt.gradle:gradle-errorprone-plugin:3.0.0 was found. The consumer was configured to find a runtime of a library compatible with Java 11, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.5.1' but:
- Variant 'apiElements' capability net.ltgt.gradle:gradle-errorprone-plugin:3.0.0 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 11
- Other compatible attribute:
- Doesn't say anything about org.gradle.plugin.api-version (required '7.5.1') - Variant 'javadocElements' capability net.ltgt.gradle:gradle-errorprone-plugin:3.0.0 declares a runtime of a component, and its dependencies declared externally: - Incompatible because this component declares documentation and the consumer needed a library - Other compatible attributes: - Doesn't say anything about its target Java version (required compatibility with Java 11)
- 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.1')
- Variant 'runtimeElements' capability net.ltgt.gradle:gradle-errorprone-plugin:3.0.0 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 11
- Other compatible attribute:
- Doesn't say anything about org.gradle.plugin.api-version (required '7.5.1') - Variant 'sourcesElements' capability net.ltgt.gradle:gradle-errorprone-plugin:3.0.0 declares a runtime of a component, and its dependencies declared externally: - Incompatible because this component declares documentation and the consumer needed a library - Other compatible attributes: - Doesn't say anything about its target Java version (required compatibility with Java 11)
- 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.1')
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
The text was updated successfully, but these errors were encountered:
Just noticed that as well. I'll do a 3.0.1 soon, built with JDK 8. That's a side effect of moving to a more recent Gradle version and/or plugin-publish that published Gradle module metadata.
no problem! I think you can use -release to have a newer JDK target an older version. I believe this works better than the target version which used to include newer method calls (hence animal sniffer), but I never trusted it enough to try and use in a release process.
This is not even a problem with the binary, only with metadata: the Gradle Module Metadata says that it targets Java 17; the binary correctly targets Java 8 though (this is Kotlin, and the kotlin-dsl plugin configures it for Java 8 as a target) so it would work if Gradle accepted to resolve the dependency.
You can tell Gradle to ignore the Gradle Module Metadata using this declaration in your settings script (Kotlin DSL here, adapt accordingly for the Groovy DSL):
When upgrading the new release if running Gradle with JDK 11 (build scan). If using 17 then it works fine (build scan).
The text was updated successfully, but these errors were encountered: