-
Notifications
You must be signed in to change notification settings - Fork 3
/
buildfile
45 lines (38 loc) · 1.4 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
# buildfile for bering
require 'buildr/bnd'
VERSION_NUMBER = "0.8.3-SNAPSHOT"
GROUP = 'edu.northwestern.bioinformatics'
repositories.release_to[:url] = "sftp://ligand/var/www/sites/download/download/maven2"
define 'bering' do
project.version = VERSION_NUMBER
project.group = GROUP
compile.options.target = '1.5'
compile.options.source = '1.5'
compile.options.other = %w(-encoding UTF-8)
define 'core' do
compile.with SPRING, GROOVY, ANT, SERVLET, HIBERNATE, JAKARTA_COMMONS
test.compile.with UNIT_TEST, HSQLDB
test.resources
package(:bundle, :id => 'bering').tap do |bundle|
bundle['Export-Package'] = [
'ant', 'dialect', 'dialect.hibernate',
'runtime', 'runtime.classpath', 'runtime.filesystem',
'servlet', 'tools', nil
].collect { |sub| ["edu.northwestern.bioinformatics.bering", sub].compact.join('.') }.
join(',')
bundle['Import-Package'] = '*;resolution:=optional'
bundle['Bundle-Name'] = 'Bering'
bundle['Bundle-Description'] = 'Bering, a database refactoring and migration system.'
bundle['DynamicImport-Package'] = '*' # for JDBC drivers
end
package(:javadoc, :id => 'bering')
package(:sources, :id => 'bering')
end
define 'maven-plugin' do
compile.with project('core').and_dependencies, MAVEN, HSQLDB
test.compile.with UNIT_TEST
package(:jar)
package(:javadoc)
package(:sources)
end
end