Delegate build/run actions to Grade: Task 'run MyMainClass' not found

已回答

Hi

I'm trying to use IDEA's feature to let Gradle do all building. However, this feature seems to be unusable (I'm sure, I'm missing something – however, the only docs on this feature is the label of the checkbox). Building gets delegated OK, but whenever I try to run a run configuration, I get:

FAILURE: Build failed with an exception.

* What went wrong:
Task 'run MyMainClass' not found in project ':my:project'.

What am I missing there? Do I really have to define a task for the run configuration manually? If so, how can I use different run configurations with the same main class? What about debugging?

0

Looks like https://youtrack.jetbrains.com/issue/IDEA-166764. I'll ask the responsible developer to comment on it.

0

Seems to be fixed in build 172.167.

0

请先登录再写评论。