-
Notifications
You must be signed in to change notification settings - Fork 30
/
buildfile
40 lines (31 loc) · 976 Bytes
/
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
repositories.remote << 'http://www.ibiblio.org/maven2'
repositories.remote << "http://mirrors.ibiblio.org/pub/mirrors/maven2"
class Buildr::Artifact
def <=>(other)
self.id <=> other.id
end
end
def add_artifacts(*args)
artifacts( [ args ].flatten.sort.uniq ).sort
end
JARS = add_artifacts('net.sourceforge.jregex:jregex:jar:1.2_01')
TEST_JARS = JARS + add_artifacts('commons-lang:commons-lang:jar:2.5')
desc 'UASparser'
define 'UASparser' do
project.group = 'cz.mallat.uasparser'
project.version = '0.6.2'
compile.with JARS
test.with TEST_JARS
package :jar, :id => 'uasparser'
package :sources, :id => 'uasparser'
package :javadoc, :id => 'uasparser'
package(:tgz).path("#{id}-#{version}").tap do |path|
path.include "pom.xml"
path.include "README.md"
path.include "LICENSE"
path.include "COPYING"
path.include "COPYING.LESSER"
path.include package(:jar), package(:sources)
path.path("lib").include JARS
end
end