Running main method with IntelliJ in gradle project, but with only the System.out output

Viewed 477

I have a project configured with gradle. And I use IntelliJ to run the main method as follows

Printscreen

Yet, I don't want to see the main Gradle console showing me the results, I just want to see the same output as IntelliJ when running a project that is not configured with Gradle

Basically, I don't want to see

enter image description here

Nor this:

enter image description here

Is it possible?

2 Answers

In IntelliJ go to File -> Settings -> Build,Execution,Development -> Build Tools -> Gradle.

And, Change the property "Build and run using:" to IntelliJ IDEA from Gradle(Default).

This will give you the same output as IntelliJ when running a project that is not configured with Gradle.

enter image description here

You can change the run option to not use Gradle at File | Settings | Build, Execution, Deployment | Build Tools | Gradle:

Gradle no delegate

Related