Fix version display again

This commit is contained in:
Alexander Xia committed 2018-11-25 02:33:12 +08:00
1 parent 860edd2e1a
commit 016249c6ca
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -68,15 +68,16 @@ void downloadFile(String key, File file) {
}
void uploadArtifacts(String shortVersion) {
String cslversion = shortVersion.replace(".", "")
File dir = rootProject.file("build/libs")
if (!dir.isDirectory()) return
File[] files = dir.listFiles()
for (file in files) {
String key = getKey(file.getName())
uploadFile(key, file)
String url = cosUrl + key
String mcversion = getMcVersion(file.getName()).replace(".", "").toLowerCase()
String cslversion = shortVersion.replace(".", "")
println(String.format("csl-%s-%s\t%s", mcversion, cslversion, url))
}
}
+1 -1
View File
@@ -26,7 +26,7 @@ String getCSLVersion() {
//Example: 14.10a-s33
String getShortVersion() {
return getVersion().replace("SNAPSHOT-", "s")
return getCSLVersion().replace("SNAPSHOT-", "s")
}
ext {