forked from jruby/jruby
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpom.rb
28 lines (19 loc) · 897 Bytes
/
pom.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
project 'JRuby Main Maven Artifact' do
version = File.read( File.join( basedir, '..', '..', 'VERSION' ) ).strip
model_version '4.0.0'
id "org.jruby:jruby:#{version}"
inherit "org.jruby:jruby-artifacts:#{version}"
# keep it a jar even without sources - easier to add to a project
packaging 'jar'
properties( 'tesla.dump.pom' => 'pom-generated.xml',
'jruby.home' => '${basedir}/../..',
'main.basedir' => '${project.parent.parent.basedir}' )
jar 'org.jruby:jruby-core:${project.version}'
jar 'org.jruby:jruby-stdlib:${project.version}'
# we have no sources and attach an empty jar later in the build to
# satisfy oss.sonatype.org upload
plugin( :source, 'skipSource' => 'true' )
# this plugin is configured to attach empty jars for sources and javadocs
plugin( 'org.codehaus.mojo:build-helper-maven-plugin' )
plugin( :invoker )
end