Created
August 27, 2010 19:03
-
-
Save ctdean/553970 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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