-
Notifications
You must be signed in to change notification settings - Fork 32
/
Rakefile
39 lines (31 loc) · 813 Bytes
/
Rakefile
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
require 'bundler'
require 'ruby-maven'
require 'rake/testtask'
Bundler::GemHelper.install_tasks
Rake::TestTask.new do |t|
t.pattern = "test/*_test.rb"
end
desc "Run benchmarks"
task :benchmark do
load 'benchmarking/benchmark_threaded.rb'
end
desc "Pack jar after compiling classes, use this to rebuild the pom.xml"
task :compile do
RubyMaven.exec('prepare-package')
# after packaging the jrjackson-x.y.z.jar vendor jar dependencies
Rake::Task['vendor_jars'].invoke
end
task :vendor_jars do
require 'jars/installer'
Jars::Installer.vendor_jars!
end
desc "Clean build"
task :clean do
RubyMaven.exec('clean')
end
task :default => [ :compile ]
require 'rubygems/package_task'
Gem::PackageTask.new( eval File.read( 'jrjackson.gemspec' ) ) do
desc 'Pack gem'
task :package => [:compile]
end