From affcffe2702b009c9029b87faa9c83a27161e068 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 2 Jun 2025 11:44:09 +0600 Subject: [PATCH] small improvement in uploadSonatypePublicationmain.kts --- uploadSonatypePublication.main.kts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/uploadSonatypePublication.main.kts b/uploadSonatypePublication.main.kts index 6dfc047128d..0a6c52bc49a 100755 --- a/uploadSonatypePublication.main.kts +++ b/uploadSonatypePublication.main.kts @@ -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") } }