改名后在JCenter中找不到工件。

问题描述 投票:1回答:1

我最近更新了JCenter中一些包的名称和工件名称(例子),我相应地更新了Gradle中的坐标。然而,无论我怎么做,都找不到新的工件。

我直接检查了JCenter,它们似乎在那里。我是否需要做一些事情才能让它重新工作?

bintray jcenter
1个回答
0
投票

请注意,当你为某个包提交JCenter收录请求时,groupID下存在的所有artifactID都会被JCenter收录。如果你在已经收录的groupID下添加了额外的工件ID,这些工件ID将不会在JCenter中被镜像,因为JCenter的主机为 单个包的单一路径.

在你的例子中,对于包 "kodein-di-android-components "有两个artifactIDs在groupID "comeygraber "1.kodein-android-components2.

JCenter中只包含了第一个artifactID "kodein-android-components",为了添加第二个artifactID "kodein-di-android-components",需要为artifactID "kodein-di-android-components "创建一个新的Bintray包,并包含路径下的所有文件。GroupID+ artifactIDcomeygraberkodein-di-android-components。 这样软件包就会被托管在JCenter,路径为https:/jcenter.bintray.comcomeygraber。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.