Clojure

automate distribution zip

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: Release 1.3
  • Fix Version/s: Release 1.3
  • Component/s: None
  • Labels:
    None
  • Approval:
    Ok

Description

In the move to maven, we lost the old ant automation for creating a release zip. In order to release 1.3.0-alpha6, I am using the following ant XML I hacked together:

<target name="dist">
    <property name="clojure.version.label" value="clojure-1.3.0-alpha6"/>
    <property name="distdir" value="dist/${clojure.version.label}"/>
    <mkdir dir="${distdir}"/>
    <copy todir="${distdir}" includeEmptyDirs="false">
      <fileset dir="${basedir}">
        <include name="*.xml"/>
        <include name="**/*.html"/>
        <include name="**/*.txt"/>
        <include name="**/*.markdown"/>
        <include name="**/*.clj"/>
        <include name="**/*.java"/>
      </fileset>
    </copy>
    <copy file="clojure.jar" todir="${distdir}"/>
    <zip basedir="dist" destfile="clojure-${clojure.version.label}.zip"/>
  </target>

What I need is something like this, but properly parameterized and integrated into the maven build, so I can grab it from hudson or central or somewhere after a release build.

Activity

Hide
Stuart Sierra added a comment - - edited

The POM has this set up already. Just run "mvn -Pdistribution package" to build a .zip file

This is in the README. Let me know if anything needs to be added/removed/changed.

Show
Stuart Sierra added a comment - - edited The POM has this set up already. Just run "mvn -Pdistribution package" to build a .zip file This is in the README. Let me know if anything needs to be added/removed/changed.
Hide
Stuart Sierra added a comment -

I added "-Pdistribution" to the release build command on build.clojure.org. I think this means that the distribution ZIP file will be included in the artifacts that get uploaded to the Maven Central Repository. I don't know if this is correct, or if uploading ZIPs to Central is allowed. We'll find out the next time we do a release.

Show
Stuart Sierra added a comment - I added "-Pdistribution" to the release build command on build.clojure.org. I think this means that the distribution ZIP file will be included in the artifacts that get uploaded to the Maven Central Repository. I don't know if this is correct, or if uploading ZIPs to Central is allowed. We'll find out the next time we do a release.
Hide
Stuart Sierra added a comment -

The .ZIP distribution is getting built on Hudson, but not uploaded to Sonatype or Central. It didn't really belong there anyway.

So I've configured Hudson to archive the .ZIP files on build.clojure.org.

ZIPs only get built on releases, not SNAPSHOT builds, so this should not be filling up the disk on build.clojure.org.

We can verify that this works after the next alpha release.

Show
Stuart Sierra added a comment - The .ZIP distribution is getting built on Hudson, but not uploaded to Sonatype or Central. It didn't really belong there anyway. So I've configured Hudson to archive the .ZIP files on build.clojure.org. ZIPs only get built on releases, not SNAPSHOT builds, so this should not be filling up the disk on build.clojure.org. We can verify that this works after the next alpha release.
Hide
Aaron Bedra added a comment -

This worked properly with the beta release

Show
Aaron Bedra added a comment - This worked properly with the beta release

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: