Gradle中的归档分类器是什么?

Gradle中的归档分类器是什么?,gradle,groovy,android-gradle-plugin,build.gradle,Gradle,Groovy,Android Gradle Plugin,Build.gradle,在build.gradle的task.register中,我可以找到这个 group 'build' description 'Build the project for the R1 target and assemble a zip with the APK and the client library' classifier variantNameCap 我已经读到分类器应该是相对于归档的。但是Gradle中分类器的概念到底是什么呢?这是一个取自maven的概念-请参阅并搜索分类器 分类

在build.gradle的task.register中,我可以找到这个

group 'build'
description 'Build the project for the R1 target and assemble a zip with the APK and the client library'
classifier variantNameCap

我已经读到分类器应该是相对于归档的。但是Gradle中分类器的概念到底是什么呢?

这是一个取自maven的概念-请参阅并搜索分类器

分类器区分同一项目中构建的不同工件

分类器可以是类似fat或shaded的东西,其中所有依赖项都位于fat罐中和/或shaded中


像debug或source这样的分类器非常常见。调试工件将包含所有调试信息,源工件将包含源文件

这是一个取自maven的概念-查看并搜索分类器

分类器区分同一项目中构建的不同工件

分类器可以是类似fat或shaded的东西,其中所有依赖项都位于fat罐中和/或shaded中

像debug或source这样的分类器非常常见。调试工件将包含所有调试信息,源工件将包含源文件