Another approach would be to extend the Project class such that
package(:jar) includes both .class and .clj source files (only for clojure
projects).   I'm assuming this is the right default for 99% of the projects.

Within the context of the project, you'd do something like:

class << self
  def package_as_jar
    super.tap do |jar|
      jar.with compile.sources unless @dontIncludeSourceOption
    end
  end
end

(This is really just a sketch/handwaving to convey the idea)

alex

On Thu, Jul 15, 2010 at 11:20 PM, Chris Dean <[email protected]> wrote:

> I'm working on adding Clojure support and have a question about
> packaging.
>
> One common way to package up Clojure projects is put both the Clojure
> .clj source files and all the .class files in a single jar file.  Can
> someone give me some pointers on how to do that?
>
> Cheers,
> Chris Dean
>

Reply via email to