forked from rbarooah/simpledb-scala-binding
-
Notifications
You must be signed in to change notification settings - Fork 5
/
buildfile
46 lines (32 loc) · 1.24 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
require 'buildr/scala'
VERSION_NUMBER = "1.0.21-SNAPSHOT"
repositories.remote << "http://www.ibiblio.org/maven2/"
repositories.remote << "http://repo1.maven.org/maven2/"
HTTPCLIENT = 'org.apache.httpcomponents:httpclient:jar:4.2.1'
HTTPCORE = 'org.apache.httpcomponents:httpcore:jar:4.2.1'
COMMONSLOG = 'commons-logging:commons-logging:jar:1.1.1'
CODEC = 'commons-codec:commons-codec:jar:1.5'
SLF4J_VERSION = "1.5.6"
SLF4J = [
"org.slf4j:slf4j-api:jar:#{SLF4J_VERSION}",
"org.slf4j:slf4j-log4j12:jar:#{SLF4J_VERSION}",
"org.slf4j:jcl-over-slf4j:jar:#{SLF4J_VERSION}"
]
LOG4J = "log4j:log4j:jar:1.2.15"
FAKESDB = "fakesdb:fakesdb-testing:jar:2.6.1"
download(artifact(FAKESDB) => 'https://github.com/downloads/stephenh/fakesdb/fakesdb-testing_2.9.1-2.6.1.jar')
desc 'Scala binding for Amazon SimpleDB'
define "simplistic_#{Buildr::Scala.version}" do
project.version = VERSION_NUMBER
project.group = "simplistic"
project.scalac_options.incremental = true
compile.with HTTPCORE, HTTPCLIENT, CODEC, COMMONSLOG
compile.using :deprecation => true,
:other => ['-unchecked', '-Xprint-types']
test.using :scalatest
test.with FAKESDB, LOG4J, SLF4J
doc.using :scaladoc
package :jar
package :scaladoc
package :sources
end