我用过这个教程:
http://inthecheesefactory.com/blog/how-to-upload-library-to-jcenter-maven-central-as-dependency/en
所以我的gradle依赖是:
dependencIEs { compile 'com.github.danylo2006:hashtag-helper:1.1.0'}
为了上传它,我修改了我的build.gradle并添加了相关的脚本安静.教程中的所有内容.
... some code hereext { bintrayRepo = 'maven' bintrayname = 'hashtag-helper' publishedGroupID = 'com.github.danylo2006' libraryname = 'HashTagHelper' artifact = 'hashtag-helper' libraryDescription = 'This is a library designed for highlighting hashTags ("#example") and catching click on them.' siteUrl = 'https://github.com/danylo2006/HashTagHelper' gitUrl = 'https://github.com/danylo2006/HashTagHelper.git' libraryVersion = '1.1.0' developerID = 'danylovolokh' developername = 'Danylo Volokh' developerEmail = 'v.danylo@gmail.com' licensename = 'The Apache Software license,Version 2.0' licenseUrl = 'http://www.apache.org/licenses/liCENSE-2.0.txt' alllicenses = ["Apache-2.0"]}
这是棘手的部分:
我已经将我的github昵称danylo2006改为danylovolokh,现在我想改变gradle依赖:
dependencIEs { compile 'com.github.danylo2006:hashtag-helper:1.1.0'}
改成:
dependencIEs { compile 'com.github.danylovolokh:hashtag-helper:1.1.0'}
>我从Sonatype获得了我需要的groupID
>所以我修改了我的gradle脚本.
唯一相关的变化是:
publishedGroupID = 'com.github.danylo2006'
已改为
publishedGroupID = 'com.github.danylovolokh'
我运行相关命令:
gradlew安装
gradlew bintrayUpload
我得到了BUILD_SUCCESSFulL
但是如果我向任何其他gradle项目添加新依赖项,我会收到错误“错误:(36,13)无法解决:com.github.danylovolokh:hashtag-helper:1.1.0”
解决方法 包含在JCenter中的是groupID的路径. JFrog还需要包含从包到JCenter的新路径. 请通过support@bintray.com联系JFrog支持 总结以上是内存溢出为你收集整理的android – 如果项目已经上传到bintray并与jcenter同步,如何更改groupid?全部内容,希望文章能够帮你解决android – 如果项目已经上传到bintray并与jcenter同步,如何更改groupid?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)