This step is required as long as you are using JAR configuration. If you've chosen JAR configuration, you need to patch your gradle/wrapper/gradle-wrapper.jar file by right-click on it and select Patch for "Run with Arguments".Choose Gradle if you want to use the built-in debugging functionality for gradle but not.Choose JAR if you want to use but not the built-in debugging functionality for gradle.Decide if you want to use a JAR configuration or a Gradle configuration.
Open Settings/ Plugin (or Preferences/ Plugin).
#Intellij jar no main manifest attribute install
You should first install the IntelliJ IDEA plugin Gradle Run with Arguments.How this plugin works will be explained lateron. So I wrote this plugin (specifically v2.0 and above) as a workaround. This bug hasn't been fixed for years and we can't wait infinitely for this. See the following links for more information: There is a long-standing bug that will not flush to the Run panel in IntelliJ IDEA. What's wrong with the IntelliJ IDEA's Gradle plugin So I wrote this plugin to automatically prompt for the arguments and change the -args task property accordingly. It's a total nightmare if you are debugging by changing the arguments. This becomes troublesome when using IntelliJ IDEA, in which the task properties are buried deep in the menu. The Gradle application plugin requires that you pass the command line arguments in the -args task property. IntelliJ IDEA plugin: gradlew run -args "." (.) Why What's wrong with the Gradle application plugin