dustin / java-digg

My digg interface for java.

This URL has Read+Write access

dustin (author)
Mon Apr 06 14:22:21 -0700 2009
commit  49663c81fe334ca319abce7446520e8aa22d8378
tree    e047a6043d300eab76aa8e68905d7f2be0e03bcb
parent  bb04e6b21dc906290a35eeddf9720e9af067a5d5
java-digg / buildfile
100644 64 lines (52 sloc) 1.621 kb
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
# -*- ruby -*-
# Generated by Buildr 1.2.8, change to your liking
# Version number for this release
VERSION_NUMBER = "1.3.7"
# Version number for the next release
NEXT_VERSION = VERSION_NUMBER
# Group identifier for your projects
GROUP = "spy"
COPYRIGHT = "2007 Dustin Sallings"
 
# Download stuff.
MAVEN_1_RELEASE = true
RELEASE_REPO = 'http://bleu.west.spy.net/~dustin/repo'
PROJECT_NAME = 'digg'
RELEASED_VERSIONS=%W(#{VERSION_NUMBER} 1.2 1.1.6 1.0)
 
require 'buildr/cobertura'
 
# Specify Maven 2.0 remote repositories here, like this:
repositories.remote << "http://repo1.maven.org/maven2/"
repositories.remote << "http://bleu.west.spy.net/~dustin/m2repo/"
 
plugins=[
  '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 "The Digg project"
define "digg" 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
  # Regular build
  compile.with "commons-httpclient:commons-httpclient:jar:3.1-rc1",
    "commons-logging:commons-logging:jar:1.1",
    "commons-codec:commons-codec:jar:1.3",
    "junit:junit:jar:4.3.1"
 
  # Gen build
  gen_build_info "net.spy.digg", "git"
  compile.from "target/generated-src"
  resources.from "target/generated-rsrc"
 
  # I want a jar
  package(:jar).with :manifest =>
   manifest.merge("Main-Class" => "net.spy.digg.BuildInfo\n")
 
end
# vim: syntax=ruby et ts=2