From 92f8ec50c5d2675084ad1522a7ff429fe9f3b6ab Mon Sep 17 00:00:00 2001 From: Ben Gruver Date: Sun, 14 Feb 2016 12:19:34 -0800 Subject: Add the ideadirs task for smalidea --- smalidea/build.gradle | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/smalidea/build.gradle b/smalidea/build.gradle index cb7c7084..ba3630b7 100644 --- a/smalidea/build.gradle +++ b/smalidea/build.gradle @@ -97,6 +97,17 @@ if (!('idea' in gradle.startParameter.taskNames)) { sandboxDirectory "${buildDir}/sandbox" } + + // This prints out the directories that can be used to configure a plugin sdk in IDEA, using + // the copy of IDEA downloaded by the org.jetbrains.intellij plugin + task ideaDirs() { + project.afterEvaluate { + if (intellij != null) { + println "IDEA Plugin jdk: ${intellij.ideaDirectory}" + println "sources: ${project.configurations['intellij-sources'].files[0]}" + } + } + } } else { // If we're running the idea task, let's make sure nothing else is being run, since // we have to use a special configuration for the idea task -- cgit v1.2.3