Skip to content

Commit

Permalink
[build] bring shaded lib/jruby.jar back and limit lib/jruby-truffle.j…
Browse files Browse the repository at this point in the history
…ar to truffle
  • Loading branch information
mkristian committed Jan 27, 2015
1 parent 576ecb3 commit 4f534b8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 16 deletions.
11 changes: 11 additions & 0 deletions core/pom.rb
Expand Up @@ -245,6 +245,17 @@
end


plugin :shade do
execute_goals( 'shade',
:id => 'create lib/jruby.jar',
:phase => 'package',
'relocations' => [ { 'pattern' => 'org.objectweb',
'shadedPattern' => 'org.jruby.org.objectweb' } ],
'outputFile' => '${jruby.basedir}/lib/jruby.jar',
'transformers' => [ { '@implementation' => 'org.apache.maven.plugins.shade.resource.ManifestResourceTransformer',
'mainClass' => 'org.jruby.Main' } ] )
end

[ :osgi, :dist, :'jruby-jars', :main, :all, :complete, :release, :jruby_complete_jar_extended ].each do |name|
profile name do
plugin :shade do
Expand Down
4 changes: 2 additions & 2 deletions core/pom.xml
Expand Up @@ -532,7 +532,7 @@
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<id>create lib/jruby.jar</id>
<id>pack lib/jruby.jar</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
Expand All @@ -544,7 +544,7 @@
<shadedPattern>org.jruby.org.objectweb</shadedPattern>
</relocation>
</relocations>
<outputFile>${jruby.basedir}/lib/jruby-truffle.jar</outputFile>
<outputFile>${jruby.basedir}/lib/jruby.jar</outputFile>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>org.jruby.Main</mainClass>
Expand Down
10 changes: 3 additions & 7 deletions truffle/pom.rb
Expand Up @@ -10,7 +10,7 @@

'jruby.basedir' => '${basedir}/..' )

jar 'org.jruby:jruby-core', '${project.version}'
jar 'org.jruby:jruby-core', '${project.version}', :scope => 'provided'

jar 'com.oracle:truffle:0.6'
jar 'com.oracle:truffle-dsl-processor:0.6', :scope => 'provided'
Expand All @@ -37,13 +37,9 @@

plugin :shade do
execute_goals( 'shade',
:id => 'pack jruby.jar',
:id => 'create lib/jruby-truffle.jar',
:phase => 'package',
'relocations' => [ { 'pattern' => 'org.objectweb',
'shadedPattern' => 'org.jruby.org.objectweb' } ],
'outputFile' => '${jruby.basedir}/lib/jruby.jar',
'transformers' => [ { '@implementation' => 'org.apache.maven.plugins.shade.resource.ManifestResourceTransformer',
'mainClass' => 'org.jruby.Main' } ] )
'outputFile' => '${jruby.basedir}/lib/jruby-truffle.jar' )
end

build do
Expand Down
9 changes: 2 additions & 7 deletions truffle/pom.xml
Expand Up @@ -19,6 +19,7 @@
<groupId>org.jruby</groupId>
<artifactId>jruby-core</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.oracle</groupId>
Expand Down Expand Up @@ -75,18 +76,12 @@
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<id>create lib/jruby-truffle.jar</id>
<id>pack lib/jruby-truffle.jar</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<includes>
<include>com.oracle:truffle</include>
<include>com.oracle:truffle-dsl-processor</include>
</includes>
</artifactSet>
<outputFile>${jruby.basedir}/lib/jruby-truffle.jar</outputFile>
</configuration>
</execution>
Expand Down

0 comments on commit 4f534b8

Please sign in to comment.