forked from dustin/java-memcached-client
-
Notifications
You must be signed in to change notification settings - Fork 1
/
buildfile
65 lines (52 loc) · 1.68 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
# -*- mode: ruby -*-
# Generated by Buildr 1.2.10, change to your liking
# Version number for this release
VERSION_NUMBER = `git describe`.strip
# Version number for the next release
NEXT_VERSION = VERSION_NUMBER
# Group identifier for your projects
GROUP = "spy"
COPYRIGHT = "2006-2009 Dustin Sallings"
MAVEN_1_RELEASE = true
RELEASE_REPO = 'http://bleu.west.spy.net/~dustin/repo'
PROJECT_NAME = "memcached"
RELEASED_VERSIONS=%W(#{VERSION_NUMBER} 2.2 2.1 1.4 1.3.1 1.2 1.1 1.0.44)
# Specify Maven 2.0 remote repositories here, like this:
repositories.remote << "http://www.ibiblio.org/maven2/"
repositories.remote << "http://bleu.west.spy.net/~dustin/m2repo/"
require 'buildr/cobertura'
plugins=[
'spy:m1compat:rake:1.0',
'spy:site:rake:1.2.3',
'spy:git_tree_version:rake:1.0',
'spy:build_info:rake:1.1'
]
plugins.each do |spec|
artifact(spec).tap do |plugin|
plugin.invoke
load plugin.name
end
end
desc "Java memcached client"
define "memcached" do
test.options[:java_args] = "-ea"
test.include "*Test"
TREE_VER=tree_version
puts "Tree version is #{TREE_VER}"
project.version = VERSION_NUMBER
project.group = GROUP
manifest["Implementation-Vendor"] = COPYRIGHT
compile.with "log4j:log4j:jar:1.2.15", "jmock:jmock:jar:1.2.0",
"junit:junit:jar:4.4"
# Gen build
gen_build_info "net.spy.memcached", "git"
compile.from "target/generated-src"
resources.from "target/generated-rsrc"
package(:jar).with :manifest =>
manifest.merge("Main-Class" => "net.spy.memcached.BuildInfo\n")
package :sources
package :javadoc
cobertura.exclude 'net.spy.memcached.test\..*'
cobertura.exclude 'net.spy.memcached.BuildInfo'
end
# vim: syntax=ruby et ts=2