mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-11-07 15:40:34 +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
|
assert_success ./gradlew "$project:publishAllPublicationsToSonatypeRepository" --no-parallel --quiet
|
||||||
echo "Complete publishing of $project"
|
echo "Complete publishing of $project"
|
||||||
echo "Start uploading 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"
|
echo "Complete uploading of $project"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
assert_success ./uploadSonatypePublication.main.kts --automatic
|
||||||
|
|||||||
@@ -108,6 +108,7 @@ val api = CentralSonatypeOSSRHApi(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (args.any { "--user_manager" }) {
|
||||||
api.repositories()?.forEach {
|
api.repositories()?.forEach {
|
||||||
if (it.state == "open") {
|
if (it.state == "open") {
|
||||||
println("Start uploading of ${it.key}")
|
println("Start uploading of ${it.key}")
|
||||||
@@ -116,6 +117,8 @@ api.repositories() ?.forEach {
|
|||||||
println("Complete uploading of ${it.key}. Status ok: $uploaded")
|
println("Complete uploading of ${it.key}. Status ok: $uploaded")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if (args.any { "--automatic" }) {
|
||||||
api.repositories()?.forEach {
|
api.repositories()?.forEach {
|
||||||
if (it.state == "closed") {
|
if (it.state == "closed") {
|
||||||
println("Start uploading of ${it.key} with auto mode ")
|
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")
|
println("Complete uploading of ${it.key} with auto mode . Status ok: $uploaded")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user