Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (23 sloc) 0.823 kb
require 'buildr'
require 'buildr/scala'
SCALA_LIB = { :group => 'org.scala-lang', :id => 'scala-library', :version => '2.7.3' }
SCALA_SWING = { :group => 'org.scala-lang', :id => 'scala-swing', :version => '2.7.3' }
desc 'Countdown Timer'
define 'timer' do
project.version = '0.1'
compile.with(SCALA_LIB, SCALA_SWING)
define "application" do
package(:jar).path("lib").tap do | p |
p.include artifact(SCALA_LIB).to_s
p.include artifact(SCALA_SWING).to_s
end
package(:jar).path("main").tap do | p |
p.include project('timer').package(:jar)
end
package(:jar).include :from => 'one-jar'
package(:jar).with :manifest=>manifest.merge(
'One-Jar-Main-Class'=>'net.brehaut.timer.Timer',
'Main-Class'=>'com.simontuffs.onejar.Boot'
)
end
end
Jump to Line
Something went wrong with that request. Please try again.