Gradle, in one word

2019-01-01  本文已影响5人  ThomasLiao

build script

Everything in Gradle sits on top of two basic concepts: projects and tasks.

project

build.gradle

automatically looks for this file as the build script

plugin

task

A project is essentially a collection of Task objects

run gradle

gradle -q

忽略Gradle的log信息,只显示task的结果


doFirst doLast

将一个action头插入或者尾插入action list中。action list是按照顺序执行的

Build Variant

The combination of Build Type and Flavor is known as Build Variant.

Build Type

Build Type refers to build and packaging settings like signing configuration for a project.

Flavour

A flavor is used to specify custom features, minimum and target API levels, device and API requirements like layout, drawable and custom code (for example, if production code is slightly different than development code).

上一篇 下一篇

猜你喜欢

热点阅读