Skip to content

Instantly share code, notes, and snippets.

@ctdean
Created August 27, 2010 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ctdean/553972 to your computer and use it in GitHub Desktop.
Save ctdean/553972 to your computer and use it in GitHub Desktop.
JarJar Buildfile
require 'buildr/clojure'
VERSION_NUMBER = "1.0.0"
GROUP = "clj-ants-sim"
repositories.remote << "http://repo1.maven.org/maven2"
deps = %w{
org.clojure:clojure:jar:1.1.0
org.clojure:clojure-contrib:jar:1.1.0
org.slf4j:slf4j-simple:jar:1.6.1
org.slf4j:slf4j-api:jar:1.6.1
}
desc "The Clojure Ants Simulation project"
define "clj-ants-sim" do
project.version = VERSION_NUMBER
project.group = GROUP
compile.with deps
jcp = deps.map {|x| "lib/" + File.basename( artifact( x ).name )}.join( " " )
package( :jar ).tap do |p|
p.include( deps, :path => "lib/" )
p.with :manifest => { "Class-Path" => jcp, "Version" => VERSION_NUMBER }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment