mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-11-02 01:52:57 +00:00
small improvement in uploadSonatypePublicationmain.kts
This commit is contained in:
1 parent
62930231e4
commit
affcffe270
1 file changed
+8
-2
@@ -110,11 +110,17 @@ val api = CentralSonatypeOSSRHApi(
|
|||||||
|
|
||||||
api.repositories() ?.forEach {
|
api.repositories() ?.forEach {
|
||||||
if (it.state == "open") {
|
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 {
|
api.repositories() ?.forEach {
|
||||||
if (it.state == "closed") {
|
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