brolund / jambda

Typesafe, functional programming in Java

Daniel Brolund (author)
Fri May 22 15:44:47 -0700 2009
commit  61f22b190e5ac8fa25acd3417c009db61adb9b51
tree    12dbfa725ca8b6fa5b0075be7b8b7fd4c3ea515c
parent  7c08cb2e27fef069a8027cdf9a7a09ff87fe4342
jambda / buildfile
100644 60 lines (49 sloc) 1.905 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
require 'buildr/scala'
# Generated by Buildr 1.3.3, change to your liking
# Version number for this release
VERSION_NUMBER = '0.1'
# Group identifier for your projects
GROUP = "jambda"
COPYRIGHT = "(c) 2008-2009 Johan Kullbom, Daniel Brolund, Joakim Ohlrogge"
 
# Specify Maven 2.0 remote repositories here, like this:
repositories.remote << "http://www.ibiblio.org/maven2/"
repositories.remote << "http://www.agical.com/maven2/"
 
BUMBLEBEE = ['com.agical.bumblebee:bumblebee-core:jar:1.1.0']
 
desc "The jambda project"
define "jambda" do
  repositories.release_to = "file:///tmp/jambda_upload_repo"
 
  project.version = VERSION_NUMBER
  project.group = GROUP
  manifest["Implementation-Vendor"] = COPYRIGHT
 
  define "com.agical.jambda" do
    compile.with # Add classpath dependencies
    package(:jar)
    package :sources
    package :javadoc
  end
 
  desc "jambda scala bridge"
  define "com.agical.jambda.scala" do
    manifest["Implementation-Vendor"] = COPYRIGHT
    compile.with project('com.agical.jambda')
    package :jar
    package :sources
  end
 
  desc "jambda documentation"
  define "com.agical.jambda.demo" do
    manifest["Implementation-Vendor"] = COPYRIGHT
    compile.with project('com.agical.jambda')
    test.with BUMBLEBEE
    test.include 'com.agical.jambda.demo.TestSuite'
    package :jar
   package(:zip, :id => 'jambda').
    include(compile.classpath, :path=>"lib").
    include(_("target/site/*"), :path=>"doc").
    include(_("src"), :path=>"com.agical.jambda.demo").
    include(_("LICENSE.txt"), :path=>".").
 
    include(_("../com.agical.jambda/target/javadoc/*"), :path=>"javadoc").
    include(_("../com.agical.jambda/src"), :path=>"com.agical.jambda").
 
    include(_("../com.agical.jambda.scala/target/*.jar"), :path=>"lib").
    include(_("../com.agical.jambda.scala/src"), :path=>"com.agical.jambda.scala").
    include(_("../buildfile"), :path=>".")
  end
 
end