I want to create a plugin for IntelliJ IDEA. I install the Intellij IDEA 2021.3 and the Oracle OpenJDK 17.0.1.
I try to create an empty plugin project following this instruction. I select the Gradle, then check the IntelliJ Platform Plugin and chois the OpenJDK 17 in the Project SDK list. Then I press next->finish.
The new empty project is opening and after a few seconds I look at the message "my_plugin:test: Could not find org.jetbrains:annotations:22.0.0."
Also I tride to create an empty IDEA plugin project wih the IDEA 2021.3 and the Oracle OpenJDK 15. And with the IDEA 2021.1.3 and the Oracle OpenJDK 15. The result is the same.
Why does the Gradle not creating a project automatically? And how can I create an empty IntelliJ IDEA plugin project correctly?
P.S. Your recommendation (wich last updat is 08 March 2021) says: "To add the library with annotations to a Gradle project, add the compile 'org.jetbrains:annotations:16.0.2' dependency to the build.gradle file". But the answer on StackOverflow (with links to gradle.org) says that "the compile, runtime, testCompile, and testRuntime configurations introduced by the Java plugin have been deprecated since Gradle 4.10 (Aug 27, 2018), and were finally removed in Gradle 7.0 (Apr 9, 2021)"
Is this the reason of my problem? If yes, will you correct your documentation? And what shall I do to solve the problem?