-
Notifications
You must be signed in to change notification settings - Fork 1
/
Buildfile
149 lines (122 loc) · 4.11 KB
/
Buildfile
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
require 'buildr/scala'
repositories.remote = [ "http://mirrors.ibiblio.org/pub/mirrors/maven2/",
"http://scala-tools.org/repo-releases/",
"http://ftp.cica.es/mirrors/maven2/" ]
SLF4J_VERSION = "1.5.6"
# Compile dependencies
CODEC = "commons-codec:commons-codec:jar:1.3"
COLLECTIONS = "commons-collections:commons-collections:jar:3.2.1"
COMMONS_LOGGING = "commons-logging:commons-logging:jar:1.0.4"
FILEUPLOAD = "commons-fileupload:commons-fileupload:jar:1.2.1"
HTTPCLIENT = "commons-httpclient:commons-httpclient:jar:3.1"
JAVAMAIL = "javax.mail:mail:jar:1.4"
LOG4J = "log4j:log4j:jar:1.2.14"
SLF4J = "org.slf4j:slf4j-api:jar:#{SLF4J_VERSION}"
ACTIVATION = "javax.activation:activation:jar:1.1"
SERVLET_API = "javax.servlet:servlet-api:jar:2.5"
SMACK = [ "org.igniterealtime.smack:smack:jar:3.1.0",
"org.igniterealtime.smack:smackx:jar:3.1.0" ]
OPENID = "org.openid4java:openid4java:jar:0.9.3"
RABBITMQ = "com.rabbitmq:rabbitmq-client:jar:1.3.0"
# Testing dependencies
JETTY = ["org.mortbay.jetty:jetty:jar:6.1.6",
"org.mortbay.jetty:jetty-util:jar:6.1.6",
"regexp:regexp:jar:1.3"]
SLF4J_SIMPLE = "org.slf4j:slf4j-simple:jar:#{SLF4J_VERSION}"
JWEBUNIT = [ "net.sourceforge.jwebunit:jwebunit-core:jar:1.4.1",
"net.sourceforge.jwebunit:jwebunit-htmlunit-plugin:jar:1.4.1" ]
JUNIT = "junit:junit:jar:4.5"
# Optional dependencies
DERBY = "org.apache.derby:derby:jar:10.4.2.0"
H2_DATABASE = "com.h2database:h2:jar:1.0.79"
POSTGRESQL = "postgresql:postgresql:jar:8.3.603.jdbc3"
MYSQL = "mysql:mysql-connector-java:jar:5.1.6"
COMPILE = [CODEC, FILEUPLOAD, JAVAMAIL, SERVLET_API]
define "liftweb" do
project.version = "1.1-SNAPSHOT"
project.group = "net.liftweb"
define "lift" do
compile.with projects("lift-util"), COMPILE
test.using :specs
test.using :properties => {"net.liftweb.webapptest.src.test.webapp" => _("src/test/webapp")}
test.with JETTY, JWEBUNIT
package :jar
end
define "lift-mapper" do
compile.with projects("lift", "lift-util"), COMPILE
test.using :specs
package :jar
end
define "lift-archetype-basic" do
package :jar
end
define "lift-widgets" do
compile.with projects("lift", "lift-util"), COMPILE
package :jar
end
define "lift-facebook" do
compile.with projects("lift", "lift-util"), COMPILE
package :jar
end
define "lift-textile" do
compile.with projects("lift", "lift-util"), COMPILE
test.using :specs
package :jar
end
define "archetype-jpa-basic" do
compile.with projects("lift", "lift-util"), COMPILE
end
define "lift-xmpp" do
compile.with projects("lift", "lift-util"), COMPILE, SMACK
package :jar
end
define "lift-paypal" do
compile.with projects("lift", "lift-util"), COMPILE, HTTPCLIENT
package :jar
end
define "lift-testkit" do
compile.with projects("lift", "lift-util"), COMPILE, COMMONS_LOGGING, HTTPCLIENT
package :jar
end
define "lift-archetype-blank" do
compile.with projects("lift", "lift-util"), COMPILE
package :jar
end
define "lift-openid" do
compile.with projects("lift", "lift-mapper", "lift-util"), COMPILE, OPENID
package :jar
end
define "lift-oauth" do
compile.with projects("lift", "lift-util"), COMPILE
package :jar
end
define "lift-machine" do
compile.with projects("lift", "lift-mapper", "lift-util"), COMPILE
package :jar
end
define "lift-amqp" do
compile.with projects("lift", "lift-util"), COMPILE, RABBITMQ
package :jar
end
define "lift-util" do
compile.with ACTIVATION, CODEC, COLLECTIONS, JAVAMAIL, LOG4J, SLF4J
test.using :specs
test.compile.from _("src/test/scala")
package :jar
end
define "lift-record" do
compile.with projects("lift", "lift-mapper", "lift-util")
package :jar
end
end
=begin
./lift/src/main/scala
./sites/skittr/src/main/scala
./sites/hellolift/src/main/scala
./sites/example/src/main/scala
./sites/flotDemo/src/main/scala
./sites/http-authentication/src/main/scala
./sites/JPADemo/JPADemo-spa/src/main/scala
./sites/JPADemo/JPADemo-web/src/main/scala
./sites/hellodarwin/src/main/scala
=end