I’m trying to fin a way to create task which will download specified dependencies from S3 Maven repo to some custom folder. With all necessary maven XML files.
Then next step is to upload that folder to another S3 bucket (that part I’ll solved already).
Idea behind all that is than on building stage we prepare artifact to temp bucket, then after all tests (integration, performance, uta,…) we need to publish artifact from temp bucket to public bucket. but without rebuilding library again. One way is to manually pull all files, and then copy them to the publish bucket.
But is there a better way?
Usually this kind of things is done on a C. I. server.
A job builds your library, another tests it, another performs quality checks, etc etc
Jenkins for instance has nice plug-ins like https://wiki.jenkins-ci.org/display/JENKINS/Promoted+Builds+Plug-in to enhance an already executed build, when some criteria are met.
If you really want to do it via Gradle, you have to retrieve the files like you said, and republish them elsewhere.
You can use a artifactResolutionQuery to retrieve your artifacts, or a simple gradle Configuration coupled with custom dependencies.
Hi, I found another way, directly copying from one bucket to another.
Only demand is that one user should have read permission on bucketFrom, and write permission on bucketTo.