Gradle opening: an overview of the knowledge system

Gradle is a great build tool, anyway, anyone who uses As to develop Android knows. Use it every day. But how much can you tell when it comes to him? Anyway, I can't tell what I am currently. . . Next, in order to improve the technical system, learn this tool and related language.

1. Gradle features

  • A powerful build tool (gradle can do what maven and ant can do, and can do what they can't)

  • Use program instead of traditional xml configuration, project construction is more flexible

  • There are a large number of third party plug-ins to facilitate development (importance of language)

  • Improve android and java development technology system

  • Enhance the depth of automation construction technology (advanced, salary increase necessary)

2. Related knowledge points

Anyway, after reading the knowledge map, I feel that I can solve a lot of gradle-related confusion. Help advance. Hehe! ! !

1. Concept introduction environment construction
2. Core grammar and actual combat
  • String special usage
  • Common data structures (list, map, rang)
  • Object-oriented features
3. High-level grammar combat
  • json processing
  • model conversion
  • xml read generation
  • Ordinary file reading and writing
  • Network request json converted to entity
  • document dowload
4. Project detailed actual combat

1. Project core
2. Core api
3. Gradle life cycle
4. Actual combat:

  • Unified version management script
  • Project source code interpretation
5、Task

1. Definition, use
2. Execution process
3. Dependency and input and output, Task inheritance and realization
4. Task modification default construction process, Task source code
5. Actual combat:

1. Automatically generate version xml description document
2. Automatically realize the project plug-in update function

6. Detailed explanation of other modules

1. Third-party library dependency management
2. How does gradle deal with dependencies
3. The core project setting class and how to customize it
4. Source code management class sourceSet

7. Custom plugin

1. Definition
2. Use third-party plug-ins
3. How to manage plug-in dependencies
4. Interpretation of plug-in plugin source code
5. Actual combat: Package plug-ins for others to use

8. Modify the default packaging process

1. Packaging process of android and java projects.
2. Embed the custom script into the gradle packaging process to achieve specific functions
3. The core Task diagram of the packaging process

The end

I looked at the knowledge map and it was pretty good. Then I will embark on the mysterious journey of gradle. I am looking forward to it. . . Yo-Yo!

Guess you like

Origin blog.csdn.net/qq_38350635/article/details/102325577