Skip to content

Commit

Permalink
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions maven/jruby-complete/pom.rb
Original file line number Diff line number Diff line change
@@ -81,8 +81,10 @@

# use the javadocs and sources from jruby-core !!!
phase :package do
set = ['sources']
set << 'javadocs' if name != 'snapshots'
plugin :dependency do
items = [ 'sources', 'javadoc' ].collect do |classifier|
items = set.collect do |classifier|
{ 'groupId' => '${project.groupId}',
'artifactId' => 'jruby-core',
'version' => '${project.version}',
@@ -96,12 +98,12 @@
end

plugin 'org.codehaus.mojo:build-helper-maven-plugin' do
artifacts = set.collect do |classifier|
{ 'file' => "${project.build.directory}/jruby-core-${project.version}-#{classifier}.jar", 'classifier' => classifier }
end
execute_goals( 'attach-artifact',
:id => 'attach-artifacts',
'artifacts' => [ { 'file' => '${project.build.directory}/jruby-core-${project.version}-sources.jar',
'classifier' => 'sources' },
{ 'file' => '${project.build.directory}/jruby-core-${project.version}-javadoc.jar',
'classifier' => 'javadoc' } ] )
'artifacts' => artifacts )
end
end
end
4 changes: 2 additions & 2 deletions maven/pom.rb
Original file line number Diff line number Diff line change
@@ -25,10 +25,10 @@
end

# module to profile map
map = { 'jruby' => [ :release, :main, :osgi, :j2ee ],
map = { 'jruby' => [ :release, :main, :osgi, :j2ee, :snapshots ],
'jruby-complete' => [ :release, :complete, :osgi, :'jruby_complete_jar_extended', :snapshots],
'jruby-jars' => [ :release, :'jruby-jars', :snapshots ],
'jruby-dist' => [ :release, :dist ]
'jruby-dist' => [ :release, :dist, :snapshots ]
}

profile :all do

0 comments on commit b9f8d72

Please sign in to comment.