Versions Compared

Key

  • 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 (httpssitehttps://dav.codehaus.org/dist/groovy/distributions), for example, or through rsync if you're authorized:

    Code Blockrsync -vlogDrzP

  • Upload the javadocs from ./target/

    distributions/*.zip $USER@groovy.codehaus.org:/projects/groovy/dist/

    (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 (https://dav.codehaus.org/groovy/), for example:

    Code Block
    rsync -vlogDrzP ./target/html/* $USER@groovy.codehaus.org:/projects/groovy/web/
  • 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
    groovy.deploy.username
    groovy.deploy.password

    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
    XML
    <?xml version="1.0"?>
    <settings>
      <servers>
        <server>
          <id>codehaus.org</id>
          <username>USER</username>
          <password>PASSWORD</password>
        </server>
      </servers>
    </settings>
    

    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
    languagebash
    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 -Djavax.net.ssl.keyStore=$HOME/.keystore -Djavax.net.ssl.keyStorePassword=changeit -Djavax.net.ssl.trustStore=$HOME/.keystore -Djavax.net.ssl.trustStorePassword=changeit"
    
    ./gradlew -Dgroovy.deploy.username=USER -Dgroovy.deploy.password=PASSWORD uploadArchives

...