[java-parent-project-v3] branch master updated: INFRA-110 - Add options to upload Javadoc and sources.

Tom Zeller tzeller at dragonacea.biz
Wed Jun 29 16:44:30 EDT 2016


This is an automated email from the git hooks/post-receive script.

tzeller pushed a commit to branch master
in repository java-parent-project-v3.

View the commit online:
http://git.shibboleth.net/view/?p=java-parent-project-v3.git;a=commit;h=d08f1605e8355821fc1c7d6e30ee068242e3eb06

The following commit(s) were added to refs/heads/master by this push:
       new  d08f160   INFRA-110 - Add options to upload Javadoc and sources.
d08f160 is described below

commit d08f1605e8355821fc1c7d6e30ee068242e3eb06
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Wed Jun 29 15:41:31 2016 -0500

    INFRA-110 - Add options to upload Javadoc and sources.
---
 bin/upload-nexus-dependencies.sh | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/bin/upload-nexus-dependencies.sh b/bin/upload-nexus-dependencies.sh
index 01732e9..690e983 100755
--- a/bin/upload-nexus-dependencies.sh
+++ b/bin/upload-nexus-dependencies.sh
@@ -148,10 +148,20 @@ if [ $UPLOAD_ARTIFACT == "y" ] ; then
     DEFAULT_COMMAND_LINE_OPTIONS="-Dtransitive=true"
     ask $DEFAULT_COMMAND_LINE_OPTIONS " Command line options, for example -Dtransitive=false" COMMAND_LINE_OPTIONS
     $ECHO " COMMAND_LINE_OPTIONS is : $COMMAND_LINE_OPTIONS"
+    ask n " Upload Javadoc" UPLOAD_JAVADOC
+    ask n " Upload sources" UPLOAD_SOURCES
     $ECHO ""
-    
+
     $ECHO "$MVN --strict-checksums -Dmaven.repo.local=repository-old org.apache.maven.plugins:maven-dependency-plugin:RELEASE:get -Dartifact=$ARTIFACT_TO_UPLOAD $COMMAND_LINE_OPTIONS"
-    $MVN --strict-checksums -Dmaven.repo.local=repository-old org.apache.maven.plugins:maven-dependency-plugin:RELEASE:get -Dartifact=$ARTIFACT_TO_UPLOAD $COMMAND_LINE_OPTIONS
+           $MVN --strict-checksums -Dmaven.repo.local=repository-old org.apache.maven.plugins:maven-dependency-plugin:RELEASE:get -Dartifact=$ARTIFACT_TO_UPLOAD $COMMAND_LINE_OPTIONS
+    if [ $UPLOAD_JAVADOC == "y" ] ; then
+        $ECHO "$MVN --strict-checksums -Dmaven.repo.local=repository-old org.apache.maven.plugins:maven-dependency-plugin:RELEASE:get -Dartifact=$ARTIFACT_TO_UPLOAD:jar:javadoc $COMMAND_LINE_OPTIONS"
+               $MVN --strict-checksums -Dmaven.repo.local=repository-old org.apache.maven.plugins:maven-dependency-plugin:RELEASE:get -Dartifact=$ARTIFACT_TO_UPLOAD:jar:javadoc $COMMAND_LINE_OPTIONS
+    fi
+    if [ $UPLOAD_SOURCES == "y" ] ; then
+        $ECHO "$MVN --strict-checksums -Dmaven.repo.local=repository-old org.apache.maven.plugins:maven-dependency-plugin:RELEASE:get -Dartifact=$ARTIFACT_TO_UPLOAD:jar:sources $COMMAND_LINE_OPTIONS"
+               $MVN --strict-checksums -Dmaven.repo.local=repository-old org.apache.maven.plugins:maven-dependency-plugin:RELEASE:get -Dartifact=$ARTIFACT_TO_UPLOAD:jar:sources $COMMAND_LINE_OPTIONS
+    fi
 fi
 $ECHO ""
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list