2 Star 1 Fork 0

mirrors_Meituan-Dianping / Shield

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
upload_bintray.gradle 1.30 KB
一键复制 编辑 原始数据 按行查看 历史
nihao 提交于 2018-01-17 15:43 . publish shield to jcenter
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'
group = groupId
artifactId = artifactId
version = versionCode
def getPropertyFromLocalProperties(key) {
File file = project.rootProject.file('local.properties')
if (file.exists()) {
Properties properties = new Properties()
properties.load(file.newDataInputStream())
return properties.getProperty(key)
}
}
def siteUrl = 'https://tech.meituan.com/shield-opensource.html'
def gitUrl = 'https://github.com/Meituan-Dianping/Shield.git'
bintray {
user = getPropertyFromLocalProperties("bintray.user")
key = getPropertyFromLocalProperties("bintray.apikey")
configurations = ['archives']
pkg {
repo = 'maven'
name = "${project.group}:${project.name}"
userOrg = 'meituan'
licenses = ['MIT']
websiteUrl = siteUrl
vcsUrl = gitUrl
publish = true
}
}
install {
repositories.mavenInstaller {
pom {
project {
packaging 'aar'
groupId groupId
artifactId artifactId
version versionCode
}
}
}
}
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
artifacts {
archives sourcesJar
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_Meituan-Dianping/Shield.git
git@gitee.com:mirrors_Meituan-Dianping/Shield.git
mirrors_Meituan-Dianping
Shield
Shield
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891