jruby-mains/Mavenfile

74 lines
2.5 KiB
Plaintext
Raw Normal View History

2015-01-12 10:53:38 +00:00
#-*- mode: ruby -*-
2015-07-13 06:33:19 +00:00
id 'de.saumya.mojo:jruby-mains:0.3.1'
2015-01-12 10:53:38 +00:00
2015-02-05 09:07:29 +00:00
repository( :id => 'rso-public-grid',
:url => 'https://repository.sonatype.org/content/groups/sonatype-public-grid',
:releases => true, :snapshots => true )
license :name => 'MIT'
developer( :name => 'Christian Meier',
:email => 'm.kristian@web.de' )
github = 'mkristian/jruby-mains'
scm( :developerConnection => "scm:git:ssh://git@github.com:#{github}.git",
:connection => "scm:git:https://github.com/#{github}.git",
:url => "https://github.com/#{github}" )
url 'http://github.com/#{github}'
description 'a set of main method to launch a jruby application from within a jar or war file or start jetty as executable'
2015-01-12 10:53:38 +00:00
scope :provided do
2015-04-20 10:40:50 +00:00
jar 'org.jruby:jruby:${jruby.version}'
2015-01-12 10:53:38 +00:00
jar 'org.eclipse.jetty:jetty-server:${jetty.version}'
jar 'org.eclipse.jetty:jetty-webapp:${jetty.version}'
end
properties( 'jruby.version' => '1.7.21',
2015-04-20 10:40:50 +00:00
'jetty.version' => '8.1.14.v20131031',
'project.build.sourceEncoding' => 'utf-8',
'polyglot.dump.pom' => 'pom.xml' )
2015-01-12 10:53:38 +00:00
plugin :compiler, '2.3.2', :target => '1.7', :source => '1.7'
2015-01-15 19:39:36 +00:00
distribution_management do
snapshot_repository :id => 'sonatype-nexus-snapshots', :url => 'https://oss.sonatype.org/content/repositories/snapshots'
repository :id => 'sonatype-nexus-staging', :url => 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
end
2015-01-20 12:01:46 +00:00
profile :id => 'release' do
activation do
property :name => 'performRelease', :value => 'true'
end
build do
default_goal :deploy
end
plugin :source, '2.4' do
execute_goal 'jar-no-fork', :id => 'attach-sources'
end
plugin :javadoc, '2.10.1' do
execute_goal :jar, :id => 'attach-javadocs'
end
plugin :gpg, '1.5' do
execute_goal :sign, :id => 'sign-artifacts', :phase => 'verify'
end
end
2015-01-20 12:01:46 +00:00
plugin :invoker, '1.8' do
execute_goals( :install, :run,
:id => 'integration-test',
2015-01-20 20:05:47 +00:00
:goals => [:verify],
2015-01-20 12:01:46 +00:00
:streamLogs => true,
:postBuildHookScript => 'verify.bsh',
:cloneProjectsTo => '${project.build.directory}/it',
:properties => { 'artifact.version' => '${project.version}',
'jruby.version' => '${jruby.version}',
2015-04-20 10:40:50 +00:00
'jruby.plugins.version' => '1.0.9',
'bundler.version' => '1.9.2',
# dump pom for the time being - for travis
'polyglot.dump.pom' => 'pom.xml'} )
2015-01-20 12:01:46 +00:00
end