Issue of gradle support

已完成

I am following this tutorial http://www.jetbrains.org/intellij/sdk/docs/tutorials/build_system/prerequisites.html to support gradle for my plugin.

But in step 1.2, there is no such a commend:

/******

gradle runIdea

*****/

I checked the gradle and 

/*****

IDE tasks
---------
cleanIdea - Cleans IDEA project files (IML, IPR)
idea - Generates IDEA project files (IML, IPR, IWS)

******/

only these two tasks are available.

 

When I run : gradle idea, it gives me this

/*****

> Configure project :
plugin.xml with 'idea-plugin' root is not found. IntelliJ specific tasks will be unavailable for :GettyPlugin.


BUILD SUCCESSFUL in 2s
3 actionable tasks: 3 executed

*****/

I try to follow the tutorial with "idea" instead of "runIdea", 

result after all the steps

/******

2:58:00 PM: Executing external task 'idea --stacktrace'...
plugin.xml with 'idea-plugin' root is not found. IntelliJ specific tasks will be unavailable for :GettyPlugin.
:ideaModule
:ideaProject
:ideaWorkspace
:idea

BUILD SUCCESSFUL in 0s
3 actionable tasks: 3 executed
2:58:01 PM: External task execution finished 'idea --stacktrace'.

*******/

And no IDE instance is running.

"plugin.xml with 'idea-plugin' root is not found. IntelliJ specific tasks will be unavailable for :GettyPlugin. " seems to be the issue.

 

0
正式评论

Looks like you didn't apply 'gradle-intellij-plugin'. Make sure that your build.gradle has apply plugin: 'org.jetbrains.intellij'

Avatar
Permanently deleted user

I do have that in my build.gradle tho.

Also IntelliJ is telling me it cannot resolve the symbol in build.gradle

0

From the initial post:

> plugin.xml with 'idea-plugin' root is not found. IntelliJ specific tasks will be unavailable for :GettyPlugin.

You must create plugin.xml and it should be under resources root. Please follow the instructions at http://www.jetbrains.org/intellij/sdk/docs/tutorials/build_system/prerequisites.html

0
Avatar
Permanently deleted user

Hi Alexander,

I resolve the issue by following the latter part of the tutorial (create another gradle project from scratch).

Thx for the help!

 

0

请先登录再写评论。