Gradle is an open source tool for project automation based on the concepts of Apache Ant and Apache Maven. It uses a Groovy-based Domain Specific Language (DSL) to declare project settings. Currently, it also adds a Kotlin-based DSL based on the Kotlin language, discarding various cumbersome configurations based on XML.
Gradle is a JVM-based build tool, a general and flexible build tool that supports maven, Ivy repositories, and transitive dependency management, without the need for remote repositories or pom.xml and ivy.xml configuration files, based on Groovy, The build script is written in Groovy.
His **** features include:
Gradle's support for multi-project construction is excellent, and project dependency is the first function of gradle.
Gradle supports partial builds.
Support multi-mode dependency management: including jars or dirs from maven remote warehouse, nexus private server, ivy warehouse, and local file system
Gradle is the first build integration tool and has good compatibility with ant, maven, and ivy.
Easy migration: Gradle is suitable for projects of any structure. You can build the original project and gradle project in parallel on the same development platform. It is usually required to write related tests to ensure the similarity of the developed plug-ins. This migration can reduce the destructiveness and be as reliable as possible. This is also the best practice for refactoring.
The overall design of gradle is oriented as a language, not a rigid framework.
Free and open source.
What exactly does gradle provide:
1. A switchable, convention-based build framework like maven, but never locks you up (convention is better than configuration)
2. Strong support for multi-project construction
3. Powerful dependency management (based on Apache Ivy), providing the greatest convenience to build your project
4. Fully support the existing Maven or Ivy warehouse infrastructure
5. Support transitive dependency management, without the need for remote warehouses and pom.xml and ivy configuration files
6. Build based on groovy script, and its build script is written in groovy language
7. Support your construction with a wide range of domain models
How to better master gradle? Let's take a look at the actual operation of gradle by Ali architects:
The content of the actual Gradle notes is too detailed, so the space is limited and it is not displayed one by one. You can only show the general content in the screenshots in the text. Friends who need a complete note can click here to get the advanced channel.
Part 1: Introduction to Gradle:
1. Introduction to item automation:
2. The next generation build tool: Gradlo:
3. Learn to build Gradle projects through examples:
The second part masters the basic principles:
4. Summary of the build script:
5. Dependency management:
6. Multi-project construction:
7. Gradle test:
8.Extend Gradle:
9. Integration and migration:
Part 3 from build to deployment:
10. IDE support and tools
11. Build a multilingual project
12. Code quality management and monitoring:
13. Continuous integration:
14. Packaging and release:
15. Basic environment preparation and deployment:
The above information is shared for free, and friends who need a complete note can click here to get the advanced channel.