Gradle Official Document: https://docs.gradle.org/current/userguide/getting_started_eng.html#introduction

Gradle Java Doc: https://docs.gradle.org/current/javadoc/index.html Gradle Command Options: https://docs.gradle.org/current/userguide/command_line_interface.html

Problems you may encounter:

  1. Gradle version is incompatible with SpringBoot
  2. The Gradle version is incompatible with the idea version
Build Tools Advantage Disadvantage
Ant Flexible to use and faster than Maven and gradle Without imposing any coding convention on the project directory structure, developers need to write complex XML file build instructions, which is a challenge for developers.
Maven Follow a set of project directory structures with conventions greater than configuration, use agreed GAV coordinates for dependency management, and focus on package management. The project construction process is rigid, configuration file writing is not flexible enough, it is inconvenient to customize components, and the construction speed is slower than Gradle
Gradle It combines the flexibility of Ant scripts + the advantages of Maven conventions over configured project directories, supports a variety of remote warehouses and plug-ins, and focuses on the construction of large projects. The learning cost is high, there is little information, the script is flexible, and the version compatibility is poor.

1. Install Gradle

2. Gradle project directory structure

3. Create Gradle Project

4. Gradle Command

5. init.d Folder

6. Gradle Wrapper

7. Create & Deploy Project in IDEA

8. Gradle test

9. Gradle Life Cycle

10. settings.gradle

11. Task

12. File Operation

13. Dependencies