美文网首页
github maven库搭建后配置

github maven库搭建后配置

作者: 十一月的肖邦_ShawEW | 来源:发表于2019-02-01 13:09 被阅读0次

1. 上传代码到github

git init

git remote add origin git@github.com:Geroff/MavenTest.gitgit add.(ssh地址)

git commit -m "first commit"git push origin -u master

2. 复制主页面链接

将github.com修改为raw.githubusercontent.com

在主页面链接后新增/master

3. api 使用

ext{// ext is a gradle closure allowing the declaration of global properties

    PUBLISH_GROUP_ID= 'lib.hz.com'

    PUBLISH_ARTIFACT_ID= 'scoreProgress'

    PUBLISH_VERSION= android.defaultConfig.versionName

}

api PUBLISH_GROUP_ID:PUBLISH_ARTIFACT_ID:版本号

api "lib.hz.com:scoreProgress:1.0"

相关文章

网友评论

      本文标题:github maven库搭建后配置

      本文链接:https://www.haomeiwen.com/subject/gmarsqtx.html