Gradle series 7-gradle uses inteliJ idea to create projects

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

Insert picture description here
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
Insert picture description here
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:
Insert picture description here

Bale

Insert picture description here
After the packaging is successful, you can see the compiled jar package
Insert picture description here

Gradle is built through the build.gradle file, and the builde.gralde file briefly explains:
Insert picture description here

Published 159 original articles · 22 praises · 90,000+ views

Guess you like

Origin blog.csdn.net/ytuglt/article/details/104982597