From ec3e50393c91865d59e84933aeca3c050423ef73 Mon Sep 17 00:00:00 2001 From: Christian Meier Date: Fri, 23 Jan 2015 13:58:28 +0000 Subject: [PATCH] pack jni/* native libraries only in lib/jruby.jar --- core/pom.rb | 22 ------------ core/pom.xml | 38 -------------------- maven/jruby-dist/src/main/assembly/jruby.xml | 8 ++++- 3 files changed, 7 insertions(+), 61 deletions(-) diff --git a/core/pom.rb b/core/pom.rb index db5a912288b..f08ee54fad0 100644 --- a/core/pom.rb +++ b/core/pom.rb @@ -299,28 +299,6 @@ end - profile 'native' do - - activation do - file( :missing => '../lib/jni' ) - end - - plugin :dependency do - execute_goals( 'unpack', - :id => 'unzip native', - :phase => 'process-classes', - 'excludes' => 'META-INF,META-INF/*', - 'artifactItems' => [ { 'groupId' => 'com.github.jnr', - 'artifactId' => 'jffi', - 'version' => '${jffi.version}', - 'type' => 'jar', - 'classifier' => 'native', - 'overWrite' => 'false', - 'outputDirectory' => '${jruby.basedir}/lib' } ] ) - end - - end - profile 'test' do properties( 'maven.test.skip' => 'false' ) diff --git a/core/pom.xml b/core/pom.xml index 5a94870e4af..0157a8e18a5 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -1019,44 +1019,6 @@ - - native - - - ../lib/jni - - - - - - maven-dependency-plugin - - - unzip native - process-classes - - unpack - - - META-INF,META-INF/* - - - com.github.jnr - jffi - ${jffi.version} - jar - native - false - ${jruby.basedir}/lib - - - - - - - - - test diff --git a/maven/jruby-dist/src/main/assembly/jruby.xml b/maven/jruby-dist/src/main/assembly/jruby.xml index 983b57fb431..b884cdfa16b 100644 --- a/maven/jruby-dist/src/main/assembly/jruby.xml +++ b/maven/jruby-dist/src/main/assembly/jruby.xml @@ -23,6 +23,13 @@ specifications/* gems/**/* + + gems/*/spec + gems/*/specs + gems/*/test + gems/*/tests + gems/*/features + ${project.parent.parent.basedir} @@ -31,7 +38,6 @@ LICENSE* COPYING* lib/jruby.jar - lib/jni/**/* samples/**/* docs/**/* tool/nailgun/*