mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-11-04 22:20:28 +00:00
one more improvement
This commit is contained in:
@@ -19,6 +19,8 @@ for project in "${projects[@]}"; do
|
||||
assert_success ./gradlew "$project:publishAllPublicationsToSonatypeRepository" --no-parallel --quiet
|
||||
echo "Complete publishing of $project"
|
||||
echo "Start uploading of $project"
|
||||
assert_success ./uploadSonatypePublication.main.kts --quiet
|
||||
assert_success ./uploadSonatypePublication.main.kts --user_manager
|
||||
echo "Complete uploading of $project"
|
||||
done
|
||||
|
||||
assert_success ./uploadSonatypePublication.main.kts --automatic
|
||||
|
||||
@@ -108,6 +108,7 @@ val api = CentralSonatypeOSSRHApi(
|
||||
}
|
||||
)
|
||||
|
||||
if (args.any { "--user_manager" }) {
|
||||
api.repositories()?.forEach {
|
||||
if (it.state == "open") {
|
||||
println("Start uploading of ${it.key}")
|
||||
@@ -116,6 +117,8 @@ api.repositories() ?.forEach {
|
||||
println("Complete uploading of ${it.key}. Status ok: $uploaded")
|
||||
}
|
||||
}
|
||||
}
|
||||
if (args.any { "--automatic" }) {
|
||||
api.repositories()?.forEach {
|
||||
if (it.state == "closed") {
|
||||
println("Start uploading of ${it.key} with auto mode ")
|
||||
@@ -124,3 +127,4 @@ api.repositories() ?.forEach {
|
||||
println("Complete uploading of ${it.key} with auto mode . Status ok: $uploaded")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user