Skip to content

Commit

Permalink
[build] do install jruby-launcher only on -Pbootstrap
Browse files Browse the repository at this point in the history
[skip ci]
mkristian committed Mar 9, 2016
1 parent ade7d56 commit 88cd8a5
Showing 2 changed files with 17 additions and 7 deletions.
5 changes: 4 additions & 1 deletion test/pom.rb
Original file line number Diff line number Diff line change
@@ -77,10 +77,13 @@ def create_target( name, complete )
:systemPath => '${project.basedir}/requireTest-1.0.jar',
:scope => 'system' )
gem 'rspec', '${rspec.version}'
gem 'rubygems:jruby-launcher:${jruby-launcher.version}'
gem 'rubygems:minitest:${minitest.version}'
gem 'rubygems:minitest-excludes:${minitest-excludes.version}'

profile 'bootstrap' do
gem 'rubygems:jruby-launcher:${jruby-launcher.version}'
end

plugin 'de.saumya.mojo:gem-maven-plugin:${jruby.plugins.version}' do
execute_goals( 'initialize',
:phase => 'initialize',
19 changes: 13 additions & 6 deletions test/pom.xml
Original file line number Diff line number Diff line change
@@ -88,12 +88,6 @@
<version>${rspec.version}</version>
<type>gem</type>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>jruby-launcher</artifactId>
<version>${jruby-launcher.version}</version>
<type>gem</type>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>minitest</artifactId>
@@ -205,4 +199,17 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>bootstrap</id>
<dependencies>
<dependency>
<groupId>rubygems</groupId>
<artifactId>jruby-launcher</artifactId>
<version>${jruby-launcher.version}</version>
<type>gem</type>
</dependency>
</dependencies>
</profile>
</profiles>
</project>

0 comments on commit 88cd8a5

Please sign in to comment.