2 Star 1 Fork 0

xuyf/KlineChart

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
maven.gradle 2.67 KB
一键复制 编辑 原始数据 按行查看 历史
chao 提交于 2019-08-09 16:17 . 配置maven属性
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'
//这个是和你bintray上面创建的package(项目)是对应的
//定义版本标识
def siteUrl = 'https://github.com/icechao/KlineChart'// #CONFIG# // project homepage
def gitUrl = 'https://github.com/icechao/KlineChart.git'// #CONFIG# // project git
// 加载本地配置
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
group = properties.getProperty("bintray.group")
version = properties.getProperty("bintray.version")
install {
repositories.mavenInstaller {
// This generates POM.xml with proper parameters
pom {
project {
packaging 'aar'
// Add your description here
description properties.getProperty("bintray.desc")
name 'klinechart'
url siteUrl
// Set your license
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer { // 可默认,开发者信息
id 'YOUR_ID'
name 'icechao'
email properties.getProperty("bintray.email")
}
}
scm {
connection gitUrl
developerConnection gitUrl
url siteUrl
}
}
}
}
}
task androidJavadocs(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
}
task androidJavadocsJar(type: Jar) {
classifier = 'javadoc'
from androidJavadocs.destinationDir
}
task androidSourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.srcDirs
}
artifacts {
archives androidSourcesJar
archives androidJavadocsJar
}
bintray {
user = properties.getProperty("bintray.user")
key = properties.getProperty("bintray.apikey")
configurations = ['archives']
pkg {
repo = properties.getProperty("bintray.repo") //发布到Bintray的那个仓库里,默认账户有四个库,我们这里上传到maven库
name = properties.getProperty("bintray.name") //需更改,这个名字就是你在Bintray上创建Package的名字,这里会查询,如果此包不存在就会创建一个。
userOrg = user //组织名称 organization
websiteUrl = siteUrl
vcsUrl = gitUrl
licenses = ["Apache-2.0"]
publish = true
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xuyfcodecloud/KlineChart.git
git@gitee.com:xuyfcodecloud/KlineChart.git
xuyfcodecloud
KlineChart
KlineChart
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385