| 1 | #!/bin/sh |
| 2 | |
| 3 | deployFile=`ls ../buildGradle/libs/rhino*.jar` |
| 4 | |
| 5 | if [ ! -f $deployFile ] |
| 6 | then |
| 7 | echo "File cannot be found in $deployFile" |
| 8 | exit 2 |
| 9 | fi |
| 10 | |
| 11 | mvn deploy:deploy-file \ |
| 12 | -Dfile=${deployFile} \ |
| 13 | -DpomFile=maven-pom.xml \ |
| 14 | -DrepositoryId=sonatype-nexus-snapshots \ |
| 15 | -Durl=https://oss.sonatype.org/content/repositories/snapshots/ |