-
Notifications
You must be signed in to change notification settings - Fork 39
/
Mavenfile
53 lines (43 loc) · 1.83 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#-*- mode: ruby -*-
aether_version = '1.13'
maven_version = '3.0.4'
wagon_version = '2.2'
jar 'org.sonatype.aether:aether-api', aether_version
jar 'org.sonatype.aether:aether-util', aether_version
jar 'org.sonatype.aether:aether-impl', aether_version
jar 'org.sonatype.aether:aether-connector-file', aether_version
jar 'org.sonatype.aether:aether-connector-asynchttpclient', aether_version
jar 'org.sonatype.aether:aether-connector-wagon', aether_version
jar 'org.apache.maven:maven-aether-provider', maven_version
jar 'org.apache.maven.wagon:wagon-file', wagon_version
jar 'org.apache.maven.wagon:wagon-http', wagon_version
#jar 'org.apache.maven.wagon:wagon-http-lightweight', wagon_version
jar 'org.apache.maven:maven-settings', maven_version
jar 'org.apache.maven:maven-settings-builder', maven_version
# overwrite via cli -Djruby.versions=1.6.7
properties['jruby.versions'] = ['1.5.6','1.6.8','1.7.2'].join(',')
# overwrite via cli -Djruby.use18and19=false
properties['jruby.18and19'] = true
properties['jruby.plugins.version'] = '0.29.2'
plugin(:minitest) do |m|
m.execute_goal(:spec)
end
profile 'run-its' do |r|
r.plugin( :cucumber, '${jruby.plugins.version}' ) do |m|
m.execute_goal(:test)
end
end
plugin( :jar ).in_phase( 'prepare-package' ).execute_goal( :jar ).with :finalName => "${project.artifactId}", :outputDirectory => "${project.basedir}/lib"
plugin(:clean, '2.5' ).with :filesets => [ { :directory => './',
:includes => [ 'Gemfile.lock',
'lib/${project.artifactId}.jar' ] } ]
execute_in_phase( :initialize ) do
pom = File.read( 'pom.xml' )
if File.exists? '.pom.xml'
dot_pom = File.read( '.pom.xml' )
if pom != dot_pom
File.open( 'pom.xml', 'w' ) { |f| f.puts dot_pom }
end
end
end
# vim: syntax=Ruby