【问题标题】:What is an archive classifier in Gradle?Gradle 中的归档分类器是什么?
【发布时间】:2020-02-02 15:17:30
【问题描述】:

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

我读过 classifier 应该是相对于档案的。但是Gradle中的classifier究竟是什么概念呢?

【问题讨论】:

    标签: gradle groovy android-gradle-plugin build.gradle


    【解决方案1】:

    这是一个取自 maven 的概念 - 请参阅 https://maven.apache.org/pom.html 并搜索 classifier

    分类器区分来自同一项目的不同工件。

    分类器可能类似于fatshaded,其中所有依赖项都在一个胖罐子中和/或阴影中。

    debugsource 这样的分类器很常见。调试工件将包含所有调试信息,源工件将包含源文件。

    【讨论】:

      猜你喜欢
      • 2019-09-20
      • 1970-01-01
      • 1970-01-01
      • 2015-05-09
      • 1970-01-01
      • 2019-07-09
      • 2014-08-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多