Ai
2 Star 1 Fork 0

Ultra-Dejavu/Router-Android

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
upload.gradle 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
zhangyang 提交于 2020-06-03 21:46 +08:00 . [feat] 动态注册逻辑开发完成
apply plugin: 'maven'
//def sonatypeRepositoryUrl = "http://maven.wallstcn.com/nexus/content/repositories/thirdparty/"
def sonatypeRepositoryUrl = "file://" + rootDir.absolutePath + "/.repo"
Properties config = new Properties()
config.load(project.file("nexus.properties").newDataInputStream())
def nexus_versionName = config.getProperty('nexus_versionName')
def nexus_artifactId = config.getProperty('nexus_artifactId')
def nexus_groupId = config.getProperty('nexus_groupId')
afterEvaluate { project ->
uploadArchives {
repositories {
mavenDeployer {
pom.groupId = nexus_groupId
pom.artifactId = nexus_artifactId
pom.version = nexus_versionName + '-SNAPSHOT'
repository(url: sonatypeRepositoryUrl) {
try {
authentication(userName: properties.getProperty("userName"), password: properties.getProperty("password"))
} catch (Exception e) {
println(e.getMessage())
}
}
}
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Kotlin
1
https://gitee.com/leifzhang/Router-Android.git
git@gitee.com:leifzhang/Router-Android.git
leifzhang
Router-Android
Router-Android
master

搜索帮助