Ai
2 Star 1 Fork 0

Ultra-Dejavu/Router-Android

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
upload_bintray.gradle 2.46 KB
一键复制 编辑 原始数据 按行查看 历史
liabao 提交于 2021-03-07 23:54 +08:00 . [feat] 项目kts改造
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
}
}*/
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Kotlin
1
https://gitee.com/leifzhang/Router-Android.git
git@gitee.com:leifzhang/Router-Android.git
leifzhang
Router-Android
Router-Android
master

搜索帮助