gpt4 book ai didi

gradle - bintray - 将多模块 Gradle 工件发布到 JCenter

转载 作者:行者123 更新时间:2023-12-03 04:10:21 25 4
gpt4 key购买 nike

my project被组织为具有五个 Java 模块/子项目的 Gradle 多项目构建。在构建它们时,会产生五个不同的 JAR 工件。

其中四个工件包含辅助类或小的、孤立的代码部分,它们执行非常特定的操作(例如针对我的特定用例域优化的高效图形搜索)。只有一个项目是可以独立使用的“主要”工件,但运行它需要所有五个工件。

我想做this core artifact可供用户使用,并且我已成功将所有五个工件上传到 Bintray 帐户。镜像到 JCenter 时,我有两个顾虑:

  • 我是否必须积极地将所有 5 个项目链接到 JCenter,或者有没有办法只向公众公开“核心”工件?
  • “是 Pom 项目”复选框有什么作用?据我了解,Gradle 为每个 Maven 发布工件创建 POM 文件,因此应始终选中此框以获取 Maven 样式的构建。它是否正确?

  • screenshot ad (2)

    (除了“我在 Bintray 工作,我在我们的系统中为您修复了它!”之外不包含解决方案的潜在副本: Linking Bintray Package to JCenter)

    谢谢!
    - 格雷戈尔

    最佳答案

    我希望我能回答所有。

    1. Do I have to actively link all 5 projects to JCenter, or is there a way to only expose the "core" artifact to the general public?

    与其他 answer你附上说,它是在路径级别链接的,这意味着如果你包含 org/worldcubeassociation/tnoodle/lib-scrambles/作为路径,然后 只有那些模块将链接到 Jcenter。
    1. What does the "Is Pom Project" checkbox do? As I understand it, Gradle creates POM files for every Maven publication artifact, so this box should always be checked for Maven-style builds. Is this correct?

    是的,你是对的。 POM 文件已创建并上传。您可以在 path 中查看 POM 文件。 .
    有关更多信息,您可以随时查看中央存储库 guide .

    关于gradle - bintray - 将多模块 Gradle 工件发布到 JCenter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60928898/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com