Bulk upload maven artifcats from gradle cache

Hi,

I have set up Nexus 3. I am looking for bulk upload of maven artefacts from Gradle cache. Does anyone try this before?

I can upload from maven local repo .m2/repository using the script. Is there any script to upload from Gradle cache. I appreciate your help.

#!/bin/bash

copy and run this script to the root of the repository directory containing files

this script attempts to exclude uploading itself explicitly so the script name is important

Get command line params

while getopts “:r:u:p:” opt; do

case $opt in
r) REPO_URL=“$OPTARG”
;;
u) USERNAME=“$OPTARG”
;;
p) PASSWORD=“$OPTARG”
;;
esac
done
find . -type f -not -path ‘./mavenimport.sh*’ -not -path ‘/.’ -not -path ‘/^archetype-catalog.xml’ -not -path ‘/^maven-metadata-local.xml’ -not -path ‘/^maven-metadata-deployment.xml’ | sed “s|^./||” | xargs -I ‘{}’ curl -u “$USERNAME:$PASSWORD” -X PUT -v -T {} ${REPO_URL}/{} ;