forked from guyboertje/jrjackson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMavenfile
31 lines (23 loc) · 1.07 KB
/
Mavenfile
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
#-*- mode: ruby -*-
load File.expand_path('lib/jrjackson/build_info.rb', File.dirname(__FILE__))
VERSION = ::JrJackson::BuildInfo.jar_version
gemspec :jar => "jrjackson/jars/jrjackson-#{VERSION}.jar"
# overwrite groupId:artifacgtId:version from gem
id "com.jrjackson.jruby:jrjackson:#{VERSION}"
packaging :jar
properties 'project.build.sourceEncoding' => 'UTF-8',
# create a pom.xml from this here
'polyglot.dump.pom' => 'pom.xml'
jar 'junit:junit', '4.11', :scope => :test
jar 'org.jruby:jruby', '9.2.4.0', :scope => :provided
plugin :compiler, '3.1', :source => '1.8', :target => '1.8',
:showDeprecation => false,
:showWarnings => false,
:executable => '${JAVA_HOME}/bin/javac',
:fork => true
plugin :surefire, '2.17', :skipTests => true
# since bundle install does not vendor our jars we need to it manually
plugin 'org.torquebox.mojo:jruby9-exec-maven-plugin', '0.3.1' do
execute_goal :exec, :id => 'vendor-jars', :phase => 'prepare-package',
:script => "require 'jars/installer';Jars::Installer.vendor_jars!"
end