Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: remove rsync part


Code Block
./gradlew clean dist


  • Upload all the zips from ./target/distributions/ (but not jars) to the WebDAV distribution site (httpssite, for example, or through rsync if you're authorized:

    Code Blockrsync -vlogDrzP

  • Upload the javadocs from ./target/

    distributions/*.zip $

    (just check they are in the right place afterwards; you may still need a webdav client to move them into the right subdirectories if something goes wrong)

    Upload the javadocs through rsync to the html/ to the WebDAV web site (, for example:

    Code Block
    rsync -vlogDrzP ./target/html/* $
  • Put m2 jars into right place for uptake into repo1 (see Publishing artifacts on Building Groovy from Sourcefor more details):

    Prior to uploading, you must make sure you have rights to upload artifacts to the CodeHaus repository. If so, you must have two system properties set before uploading:

    Code Block

    Then you may upload artifacts using the following command (note there are lots of artifacts to upload, do not be surprised if it takes more than an hour):

    Code Block
    ./gradlew clean uploadArchives

    Or with the user / password passed as properties:

    Code Block
    ./gradlew -Dgroovy.deploy.username=USER -Dgroovy.deploy.password=PASSWORD clean uploadArchives

    Should there be a problem when uploading the jars, check that there is a file ~/.m2/settings.xml containing:

    Code Block
    <?xml version="1.0"?>

    Where USER and PASSWORD are replaced if the right values.

  • If you are affected by authentication issues, due to the odd certificates used by Codehaus, and if the installation of those certificates are problematic on your machine (if the certificates are rejected or if you're not running as root, etc), you can use a local keystore:

    Code Block
    sudo $JAVA_HOME/bin/keytool -import -alias StartSSL-CA -file ~/Downloads/startssl-CA.pem -keystore ~/.keystore 
    sudo $JAVA_HOME/bin/keytool -import -alias StartSSL-Intermediate -file ~/Downloads/startssl-Intermediate.pem -keystore ~/.keystore 
    export JAVA_OPTS="-Xmx2048M$HOME/.keystore$HOME/.keystore"
    ./gradlew -Dgroovy.deploy.username=USER -Dgroovy.deploy.password=PASSWORD uploadArchives