I am developing an idea plugin, and it is an intellij idea project.
I want to use gradle to manage the dependency.
How to config?
We use the same project that was used with the Eclipse Gradle plugin to import the project into IntelliJ IDEA. The Gradle plugin can be installed through the IntelliJ IDEA plugin manager. We need to go to IDE Settings in the Settings window, as shown in the following screenshot: We select the Gradle plugin to install it in the IDE.
The IDEA Plugin. The IDEA plugin generates files that are used by IntelliJ IDEA, thus making it possible to open the project from IDEA (File - Open Project). Both external dependencies (including associated source and Javadoc files) and project dependencies are considered.
When you open a Gradle project, the link of the project is established automatically and the Gradle tool window is enabled. If an IntelliJ IDEA project is not linked to a Gradle project, then the Gradle tool window is disabled.
Gradle JVM: when IntelliJ IDEA opens the Gradle project, it checks the gradle.properties file for the appropriate JVM version specified in org.gradle.java.home and uses it for the project. If it is not specified, then the project SDK is used.
There is now a Gradle plugin for building IntelliJ Platform Plugins. In order to use it, you will need to add the following snippet to your build.gradle
file.
plugins {
id "org.jetbrains.intellij" version "0.0.31"
}
apply plugin: 'org.jetbrains.intellij'
For more information, please see this guide to help you get started.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With