0
我試圖用gradle release plugin在私有連接庫上部署我的工件,但實際上我在上傳歸檔fase期間遇到問題。gradle release插件release-opinion
上傳到達結束,即使有400,但發行版本庫中承上啓下的答案我找到的dev- * milestone- *
我希望只RC- *或最終發佈的各種版本evene的發行庫和dev亡*和* milestone-上的快照庫
其實我的配置是
plugins {
id 'org.ajoberstar.grgit' version '1.7.0'
id 'org.ajoberstar.git-publish' version '0.2.0'
id 'org.ajoberstar.release-opinion' version '1.7.0'
} apply plugin: 'java'
apply plugin: 'maven'
group = 'social.picnik.backend'
//version = '3.31.3-SNAPSHOT'
description = " --backend-services-- "
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.release.dependsOn 'build', 'uploadArchives'
uploadArchives {
repositories {
mavenDeployer {
repository(url: "${nexusUrl}/content/repositories/releases") {
authentication(userName: nexusUsername, password: nexusPassword)
}
snapshotRepository(url: "${nexusUrl}/content/repositories/snapshots") {
authentication(userName: nexusUsername, password: nexusPassword)
}
}
}
}
wrapper {
gradleVersion = '3.4'
}
dependencies
......
我啓動命令是
gradle release
但後來我在發佈的Nexus倉庫 這個版本中發現
3.31.3-dev.22.uncommitted + c6e4922
我本來希望看到它在快照庫不釋放
感謝您的時間