IDEA Plugin Project Gradle - saikek/Intellij-Idea-Plugin-Creation-Guide GitHub Wiki
How to Build plugin
Use gradle intellij:buildPlugin
command.
How to Debug
For non-console-friendly people - the easiest way i found is through IDEA gradle toolbar
.
Tasks -> intellij -> runIdea.
Right mouse button click -> Debug.
Example configuration
buildscript {
repositories {
maven { url 'http://dl.bintray.com/jetbrains/intellij-plugin-service' }
}
}
plugins {
id "org.jetbrains.intellij" version "0.1.10"
}
apply plugin: 'idea'
apply plugin: 'org.jetbrains.intellij'
apply plugin: 'java'
sourceSets {
main {
java.srcDir 'src/main/java'
resources.srcDir 'src/main/resources'
}
test {
java.srcDir 'src/test/java'
}
}
repositories {
mavenCentral()
}
dependencies {
compile('com.github.docker-java:docker-java:3.0.3') {
exclude group: 'commons-logging'
exclude group: 'org.slf4j'
}
compile group: 'org.codehaus.jackson', name: 'jackson-core-asl', version: '1.9.13'
}
intellij {
version '163.7743.44'
plugins 'coverage'
}
test {
exclude 'com/something/**'
}
See Gradle Plugin page for more information.