I’m finally posting here after some research without any findings.
In my deployment script, I’d like to use gradle to download intended artifacts. It could be something like
gradle downloadArtifact "groupId:artifactId:version" and the corresponding build.gradle could have repository settings. I’m not sure if such usage is recommended or possible but I really like Gradle’s task management side and I’m just trying to experiment with Gradle while learning it.