Describe the bug
After downloading the source code for the plugin, when trying to run any gradle command, an error occurs describing a component mismatch:
[~/Dev/github/graphql/js-graphql-intellij-plugin (master)]$ ./gradlew tasks
Configuration on demand is an incubating feature.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'js-graphql-intellij-plugin'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve org.jetbrains.intellij.plugins:gradle-intellij-plugin:1.1.3.
Required by:
project : > org.jetbrains.intellij:org.jetbrains.intellij.gradle.plugin:1.1.3
> No matching variant of org.jetbrains.intellij.plugins:gradle-intellij-plugin:1.1.3 was found. The consumer was configured to find a runtime of a component compatible with Java 8, packaged as a jar, and its dependencies declared externally but:
- Variant 'apiElements' capability org.jetbrains.intellij.plugins:gradle-intellij-plugin:1.1.3 declares a component, 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
- Variant 'runtimeElements' capability org.jetbrains.intellij.plugins:gradle-intellij-plugin:1.1.3 declares a runtime of a component, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
* 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.
* Get more help at https://help.gradle.org
BUILD FAILED in 540ms```
**To Reproduce**
1. Check out `master` (or any commit `44fbec15b86b877796f79353b2d7d493e44c275e` or later)
2. run `./gradlew tasks`
**Expected behavior**
Build should succeed with no modifications.
**Version and Environment Details**
Operation system: MacOS 11.5.2
IDE name and version: Android Studio 2020.3.1
Plugin version: 3.0.0 and up
Describe the bug After downloading the source code for the plugin, when trying to run any gradle command, an error occurs describing a component mismatch: