Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use gradle in intellij idea plugin project?

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?

like image 841
Dozer Avatar asked Feb 09 '15 01:02

Dozer


People also ask

How do I import a Gradle project into IntelliJ IDEA?

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.

What is the IDEA plugin in IntelliJ?

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.

Why is the Gradle tool window disabled in IntelliJ IDEA?

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.

What is Gradle JVM in IntelliJ?

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.


1 Answers

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.

like image 145
breandan Avatar answered Oct 06 '22 00:10

breandan