If you have a Gradle project in Idea IntelliJ IDE and you want to run a simple Java class with the main method just like a standalone java application without Gradle kicking off the build process (can take up a lot of time when you are having multi-project dependencies), follow the below steps,
- Go to Menu: View -> Tool Windows -> Gradle,
- Now, Click on the gear icon and select: Gradle Settings..
- Now under Build and run select Build and run using IntelliJ IDEA instead of Gradle (default)
Now when you will run your Java main method the Gradle build will not happen and your execution will be super quick!
- Installing Gradle on macOS - Gradle Tutorial
- Install Gradle VS Code for Java Projects
- Adding Jackson dependency to Java Gradle Project
- Gradle FAILURE: Build failed with an exception - Task not found in root project
- Fix: Unsupported Java. Your build is currently configured to use Java 17.0.5 and Gradle 7.1.
- Fix: Invalid Gradle JDK configuration found. Could not find the required JavaSDK
- Run IntelliJ Java main method without Gradle build
- How to Clear Gradle Cache on Mac
- Create a Gradle Java Project in VS Code
- How to run Gradle build in offline mode
- Fix: Deprecated Gradle features were used in this build, making it incompatible with Gradle
- Fix: Spring Boot + IntelliJ + Gradle : Unsupported class file major version 64 Error
- Find installed Gradle version command
- Task is ambiguous in root project gradle-examples. Candidates are: myTask1, myTask2
- How to create Gradle Multi-Project in IntelliJ
- Generate Project Dependency tree using Gradle Command
- Remove items from JavaScript array - JavaScript
- Program 9: Divide Two Numbers - 1000+ Python Programs - Python-Programs
- Disable jQuery button after being click - jQuery
- How to disable Microsoft teams from startup Windows 10 - Teams
- How to Install Python Modules in VS Code - Python
- How to know the Safari Version on Mac - MacOS
- iOS Fix: This app is no longer shared with you. To use it, you must buy it from the App Store. - Apple
- How to Change Android Title Bar Color? - Android