JFrog Bintray:删除软件包并重新链接到JCenter [英] JFrog Bintray:delete package and relink to JCenter

查看:188
本文介绍了JFrog Bintray:删除软件包并重新链接到JCenter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是将库发布到Jcenter的新手. 我已经将Android gradle插件库上传到JFrog构件中.该库是

https://bintray.com/mmrx/pngquantGradlePlugin/pngcompress

然后,我单击链接到jcenter"按钮,它成功链接到jcenter.

在我的Android项目中使用了compile'c​​om.mmrx.pngcompress:pngcompress:1.0.0'.

过了一会儿,我在插件库中发现了一些错误,并删除了以前插入jcenter的1.0.0版本.并将新库以1.0.0版本代码上传到jforg工件.

在链接到"标签下方,JCenter图标仍然存在.

然后我发现"compile'c​​om.mmrx.pngcompress:pngcompress:1.0.0'"不起作用.错误消息是

Error:Could not find com.mmrx.pngcompress:pngcompress:1.0.0. Searched in the following locations: file:/D:/AndroidStudio3/android-studio/gradle/m2repository/com/mmrx/pngcompress/pngcompress/1.0.0/pngcompress-1.0.0.pom file:/D:/AndroidStudio3/android-studio/gradle/m2repository/com/mmrx/pngcompress/pngcompress/1.0.0/pngcompress-1.0.0.jar https://dl.google.com/dl/android/maven2/com/mmrx/pngcompress/pngcompress/1.0.0/pngcompress-1.0.0.pom https://dl.google.com/dl/android/maven2/com/mmrx/pngcompress/pngcompress/1.0.0/pngcompress-1.0.0.jar https://jcenter.bintray.com/com/mmrx/pngcompress/pngcompress/1.0.0/pngcompress-1.0.0.pom https://jcenter.bintray.com/com/mmrx/pngcompress/pngcompress/1.0.0/pngcompress-1.0.0.jar Required by: project :

我想在JCenter中更新库.有什么建议吗?

重新创建一个新的存储库并上传我的库并再次链接到JCenter?

解决方案

无需重新创建另一个.要在JCenter上更新库,您需要更新库版本名称版本代码,然后重新构建并再次上传到Bintray,上传成功后,单击 >发布新版本.

=>然后,您的库将在JCenter中可用.

如果旧版本已经在jCenter上,那么每当您更新库的版本时都不需要再次添加到jCenter",它将自动执行,您只需要增加库版本并将其上传到Bintray就足够了

I am newbie to publishing library to Jcenter. I had uploaded my Android gradle plugin library to JFrog artifactory.The library is

https://bintray.com/mmrx/pngquantGradlePlugin/pngcompress

And then,I clicked the button 'link to jcenter'and it linked to jcenter successful.

compile 'com.mmrx.pngcompress:pngcompress:1.0.0' was worked in my Android project.

after a while,i found some bugs in the plugin library,and deleted the version 1.0.0 which had lined to the jcenter before.And uploaded the new library to the jforg artifactory with the version code 1.0.0.

below the "Linked to" label,the JCenter icon still there.

Then i found the "compile 'com.mmrx.pngcompress:pngcompress:1.0.0'" was not working.the error message is

Error:Could not find com.mmrx.pngcompress:pngcompress:1.0.0. Searched in the following locations: file:/D:/AndroidStudio3/android-studio/gradle/m2repository/com/mmrx/pngcompress/pngcompress/1.0.0/pngcompress-1.0.0.pom file:/D:/AndroidStudio3/android-studio/gradle/m2repository/com/mmrx/pngcompress/pngcompress/1.0.0/pngcompress-1.0.0.jar https://dl.google.com/dl/android/maven2/com/mmrx/pngcompress/pngcompress/1.0.0/pngcompress-1.0.0.pom https://dl.google.com/dl/android/maven2/com/mmrx/pngcompress/pngcompress/1.0.0/pngcompress-1.0.0.jar https://jcenter.bintray.com/com/mmrx/pngcompress/pngcompress/1.0.0/pngcompress-1.0.0.pom https://jcenter.bintray.com/com/mmrx/pngcompress/pngcompress/1.0.0/pngcompress-1.0.0.jar Required by: project :

I want to update the library in JCenter.Any suggestions?

Recreate a new repository and upload my library and link to JCenter again?

解决方案

No need to recreate another one. To update a library on JCenter you need to update your library version name and version code, and then rebuild and upload into Bintray again, after upload success then you click on Publish new version.

=> Then your library will available in JCenter.

If the old version already on jCenter so whenever you update version of the library you no need to "Add to jCenter" again, it will automatically do that you only need to increase your library version and upload to Bintray is enough

这篇关于JFrog Bintray:删除软件包并重新链接到JCenter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆