Sha256: 432901d688b7b7cf41baf4b1ee7281658e2cc38b5e71f3370e9eee11c3c7d892

Contents?: true

Size: 1.07 KB

Versions: 16

Compression:

Stored size: 1.07 KB

Contents

jfile = ::Maven::Tools::Jarfile.new( java.lang.System.getProperty( "jbundler.jarfile" ) )
workdir = java.lang.System.getProperty( "jbundler.workdir" )
jworkdir = File.join( workdir, 'jruby_complete' )
FileUtils.mkdir_p( jworkdir )

build.directory = jworkdir

properties( 'maven.test.skip' => true,
            'project.build.sourceEncoding' => 'utf-8' )

jfile.populate_unlocked do |dsl|
  setup_jruby( dsl.jruby || JRUBY_VERSION, :compile )
  dsl.artifacts.select do |a|
    a[ :scope ] == :provided
  end.each do |a|
    a[ :scope ] = :compile
    artifact( a )
  end
end

plugin( :shade, '2.1',
        :outputFile => "${user.dir}/jruby-complete-custom.jar",
        :transformers => [ { '@implementation' => 'org.apache.maven.plugins.shade.resource.ManifestResourceTransformer',
                             :mainClass => 'org.jruby.Main' } ] ) do
  execute_goals( 'shade', :phase => 'package' )
end

plugin( :dependency, '2.8',
        :includeTypes => 'jar',
        :outputAbsoluteArtifactFilename => true,
        :outputFile => java.lang.System.getProperty( "jbundler.outputFile" ) )

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
jbundler-0.9.4 lib/jbundler/jruby_complete_pom.rb
jbundler-0.9.3 lib/jbundler/jruby_complete_pom.rb
jbundler-0.9.2 lib/jbundler/jruby_complete_pom.rb
jbundler-0.9.1 lib/jbundler/jruby_complete_pom.rb
jbundler-0.9.0 lib/jbundler/jruby_complete_pom.rb
jbundler-0.8.0 lib/jbundler/jruby_complete_pom.rb
jbundler-0.7.4 lib/jbundler/jruby_complete_pom.rb
jbundler-0.7.3 lib/jbundler/jruby_complete_pom.rb
jbundler-0.7.2 lib/jbundler/jruby_complete_pom.rb
jbundler-0.7.1 lib/jbundler/jruby_complete_pom.rb
jbundler-0.7.0 lib/jbundler/jruby_complete_pom.rb
jbundler-0.6.4 lib/jbundler/jruby_complete_pom.rb
jbundler-0.6.3 lib/jbundler/jruby_complete_pom.rb
jbundler-0.6.2 lib/jbundler/jruby_complete_pom.rb
jbundler-0.6.1 lib/jbundler/jruby_complete_pom.rb
jbundler-0.6.0 lib/jbundler/jruby_complete_pom.rb