Android Gradle DSL reference configuration documentation

There are many build scripts, such as maven, or ant, etc., but it is a bit cumbersome to write in xml. Many cumbersome symbols are not conducive to maintenance and management when the project is too large, and the dsl of gradle is not brought by us. A more intuitive configuration experience.
DSL (Domain Specific Language) domain specific language. Using DSL, the semantics of Gradle can be extended, and users can complete the required configuration through the DSL without caring about the specific implementation.
In fact, after reading the official explanation, I don't quite understand what it is, but it does not affect us to use it correctly in Android Studio. The current Android Studio 3.0 version uses the gradle 3.1 plugin by default. For specific basic project build configuration, please refer to the official documentation. There are about 6-7 official documents about construction, and the commonly used ones have basically been introduced.
https://developer.android.com/studio/build/index.html

For most of the configuration in the project, it is still configured under android{}. This document is the attribute configuration of all current versions of the Android gradle plugin. http://google.github.io/android-gradle-dsl/

Source directory of 'com.android.application' plugin
https://android.googlesource.com/platform/tools/build/+/master
https://android.googlesource.com/platform/tools/build/+/master/ gradle/src/main/groovy/com/android/build/gradle

Documentation for gradle.properties file configuration
https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325569934&siteId=291194637