mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-09-08 17:49:44 +00:00
small improvement in uploadSonatypePublicationmain.kts
This commit is contained in:
@@ -110,11 +110,17 @@ val api = CentralSonatypeOSSRHApi(
|
||||
|
||||
api.repositories() ?.forEach {
|
||||
if (it.state == "open") {
|
||||
api.upload(it.key, "user_managed")
|
||||
println("Start uploading of ${it.key}")
|
||||
val uploaded = api.upload(it.key, "user_managed")
|
||||
|
||||
println("Complete uploading of ${it.key}. Status ok: $uploaded")
|
||||
}
|
||||
}
|
||||
api.repositories() ?.forEach {
|
||||
if (it.state == "closed") {
|
||||
api.upload(it.key, "automatic")
|
||||
println("Start uploading of ${it.key} with auto mode ")
|
||||
val uploaded = api.upload(it.key, "automatic")
|
||||
|
||||
println("Complete uploading of ${it.key} with auto mode . Status ok: $uploaded")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user