inteliJ idea comes with gradle and groovy plugins, so it can be used directly, if you use eclipse, you need to install the plugin first
Create gradle java project
Then click next, fill in the project name, package name and other information, directly click finish to
note: the above steps are the idea version used: the
previous idea version may require some custom configuration
Wait for the initialization to be completed, you can see that after the creation is complete, the project structure is shown below:
Bale
After the packaging is successful, you can see the compiled jar package
Gradle is built through the build.gradle file, and the builde.gralde file briefly explains: