代码拉取完成,页面将自动刷新
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'
Properties config = new Properties()
Properties gradlePro = new Properties()
gradlePro.load(rootProject.file("gradle.properties").newDataInputStream())
def nexus_groupId = gradlePro.getProperty("PROJ_GROUP")
def nexus_versionName = gradlePro.getProperty("PROJ_VERSION")
group = nexus_groupId
version = nexus_versionName
try {
config.load(project.file("nexus.properties").newDataInputStream())
} catch (Exception e) {
return
}
def nexus_artifactId = config.getProperty('nexus_artifactId')
def nexus_description = config.getProperty('nexus_description')
def nexus_fileName = config.getProperty('nexus_fileName')
def nexus_url = config.getProperty('nexus_url')
def siteUrl = nexus_url// 项目的主页
def gitUrl = nexus_url// Git仓库的url
/*task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}*/
/*artifacts {
archives sourcesJar
}*/
/*
install {
repositories.mavenInstaller {
// This generates POM.xml with proper parameters
pom {
project {
packaging 'aar'
// Add your description here
name nexus_description //项目描述
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 'LeifZhang' //填写的一些基本信息
name nexus_fileName
email 'leifzhanggithub@gmail.com'
}
}
scm {
connection gitUrl
developerConnection gitUrl
url siteUrl
}
}
}
}
}
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
bintray {
user = properties.getProperty("bintray.user")
key = properties.getProperty("bintray.apikey")
configurations = ['archives']
pkg {
repo = "maven"
name = nexus_artifactId //发布到JCenter上的项目名字
websiteUrl = siteUrl
vcsUrl = gitUrl
licenses = ["Apache-2.0"]
publish = true
}
}*/
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。