更新时间:2023-09-30 13:26:52
通过他们 github 存储库上的 artifactory 多项目示例,似乎只有根项目需要有一个 artifactory{...}
配置部分,而不是像您在每个子项目中所做的那样.
Going by artifactory multi-project examples on their github repo, it would seem that only the root project needs to have an artifactory{...}
configuration section as opposed to in every sub-project as you have done.
此外,当您在根项目中声明 publications('SharedCode')
时,artifactory 插件似乎在每个子项目中寻找名为 sharedCode
的出版物.
Moreover when you declare publications('SharedCode')
in the root project, artifactory plugin seems to be looking for a publication called sharedCode
in every subproject.
我会尝试:
从 android build.gradle 中删除 artifactory{...}
部分
将 android 出版物重命名为 sharedCode
(或者在两个项目中使用更通用的名称)
Rename the android publication to sharedCode
as well (or something more generic in both projects)