How can I disable IntelliJ using the Gradle run task to run my code? : <p>After updating IDEA, every time I debug a class <em>in a new project only</em>, it seems to be using the Gradle run task to run my code (despite using an "Application" run configuration, not "Gradle"!):</p>

<pre><code>6:40:27 AM: Executing task 'Test.main()'...

Connected to the target VM, address: '127.0.0.1:49580', transport: 'socket'
&gt; Task :compileJava UP-TO-DATE
&gt; Task :processResources NO-SOURCE
&gt; Task :classes UP-TO-DATE
Connected to the VM started by ':Test.main()' (localhost:49597). Open the debugger session tab

&gt; Task :Test.main()
test
</code></pre>

<p>This is causing me many problems.</p>

<p>If I run tasks in an old project, it will just compile and run the code directly, without using Gradle. I compared all the settings in the two run configurations, and they're identical.</p>

<p>How can I disable this and prevent IntelliJ from creating this kind of run configuration when I just want a regular run configuration?</p>
