-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildfile
77 lines (56 loc) · 2.67 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
nocstyle = ENV['nocheckstyle']
if nocstyle.nil?
require "./buildr/checkstyle"
end
# Version number for this release
VERSION_NUMBER = "1.0.0"
# Group identifier for your projects
GROUP = "splice-certmaker"
COPYRIGHT = ""
# Specify Maven 2.0 remote repositories here, like this:
repositories.remote << "http://repo1.maven.org/maven2"
repositories.remote << "http://ec2-23-22-86-129.compute-1.amazonaws.com/pub/jars"
CANDLEPIN = 'candlepin:candlepin-certgen:jar:0.7.21'
BOUNCYCASTLE = group('bcprov-jdk16', :under=>'org.bouncycastle', :version=>'1.46')
LOG4J = 'log4j:log4j:jar:1.2.14'
DAEMON = transitive 'org.kohsuke:akuma:jar:1.7'
GUICE = 'com.google.inject:guice:jar:3.0'
JETTY = ['org.mortbay.jetty:jetty:jar:6.1.26',
'org.mortbay.jetty:jetty-util:jar:6.1.26',
'javax.servlet:servlet-api:jar:2.5']
HIBERNATE = ['org.hibernate:hibernate-core:jar:3.3.2.GA',
'org.hibernate:hibernate-annotations:jar:3.4.0.GA',
'org.hibernate:hibernate-commons-annotations:jar:3.3.0.ga',
'javax.persistence:persistence-api:jar:1.0',
'org.hibernate:hibernate-entitymanager:jar:3.4.0.GA',
'org.hibernate:hibernate-tools:jar:3.2.4.GA']
COMMONS = ['commons-codec:commons-codec:jar:1.4',
'commons-collections:commons-collections:jar:3.1',
'commons-io:commons-io:jar:1.3.2',
'commons-lang:commons-lang:jar:2.5']
COLLECTIONS = 'com.google.collections:google-collections:jar:1.0'
INI4J = 'org.ini4j:ini4j:jar:0.5.2'
QUARTZ = 'org.quartz-scheduler:quartz:jar:2.1.5'
JACKSON = [group('jackson-core-lgpl',
'jackson-mapper-lgpl',
'jackson-jaxrs',
'jackson-xc',
:under => 'org.codehaus.jackson',
:version => '1.9.2')]
# mockito 1.9.5 is required, to fix http://code.google.com/p/mockito/issues/detail?id=53
JUNIT = ['junit:junit:jar:4.5', 'org.mockito:mockito-all:jar:1.9.5']
SLF4J = [ 'org.slf4j:slf4j-api:jar:1.5.8',
'org.slf4j:slf4j-log4j12:jar:1.6.1']
RESTEASY = ['org.jboss.resteasy:resteasy-jaxrs:jar:2.3.5.Final',
'org.jboss.resteasy:jaxrs-api:jar:2.3.5.Final',
'org.jboss.resteasy:resteasy-multipart-provider:jar:2.3.5.Final',
'org.jboss.resteasy:resteasy-jackson-provider:jar:2.3.5.Final']
desc "The Splice-certmaker project"
define "splice-certmaker" do
project.version = VERSION_NUMBER
project.group = GROUP
manifest["Implementation-Vendor"] = COPYRIGHT
compile.with [DAEMON, CANDLEPIN, BOUNCYCASTLE, COMMONS, COLLECTIONS, JACKSON, LOG4J, HIBERNATE, GUICE, JETTY, SLF4J, INI4J, RESTEASY, QUARTZ] # Add classpath dependencies
package(:jar)
test.with [JUNIT, COMMONS]
end