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!
More Posts related to Gradle,
- Find installed Gradle version command
- How to Clear Gradle Cache on Mac
- Generate Project Dependency tree using Gradle Command
- How to create Gradle Multi-Project in IntelliJ
- Adding Jackson dependency to Java Gradle Project
- How to run Gradle build in offline mode
- Gradle FAILURE: Build failed with an exception - Task not found in root project
- Install Gradle VS Code for Java Projects
- Create a Gradle Java Project in VS Code
- Run IntelliJ Java main method without Gradle build
- Installing Gradle on macOS - Gradle Tutorial
- Task is ambiguous in root project gradle-examples. Candidates are: myTask1, myTask2
More Posts:
- Error: Failed to validate the signature of the actionable message card - Power Automate Flow - PowerAutomate
- Float built-in function in Python - Python
- How to change user image icon macOS Big Sur - MacOS
- How to add two float numbers in Python - Python
- How to open terminal on Mac to run commands - MacOS
- Notepad++ Happy vs Unhappy Versions - NotepadPlusPlus
- How to take user input from the console in a Python program - Python
- How to change Android Titlebar theme color from Purple - Android