[maven-release-plugin] prepare release jruby-mains-0.1.0

This commit is contained in:
Christian Meier 2015-02-05 10:19:44 +01:00
parent 1abe4859bd
commit b4c929b42f
2 changed files with 106 additions and 2 deletions

View File

@ -1,11 +1,24 @@
#-*- mode: ruby -*-
id 'de.saumya.mojo:jruby-mains:0.1.0-SNAPSHOT'
id 'de.saumya.mojo:jruby-mains:0.1.0'
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'
scope :provided do
pom 'org.jruby:jruby:1.7.19'
jar 'org.eclipse.jetty:jetty-server:${jetty.version}'
@ -23,6 +36,26 @@ distribution_management do
repository :id => 'sonatype-nexus-staging', :url => 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
end
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
plugin :invoker, '1.8' do
execute_goals( :install, :run,
:id => 'integration-test',

73
pom.xml
View File

@ -4,8 +4,26 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.saumya.mojo</groupId>
<artifactId>jruby-mains</artifactId>
<version>0.1.0-SNAPSHOT</version>
<version>0.1.0</version>
<name>jruby-mains</name>
<description>a set of main method to launch a jruby application from within a jar or war file or start jetty as executable</description>
<url>http://github.com/#{github}</url>
<licenses>
<license>
<name>MIT</name>
</license>
</licenses>
<developers>
<developer>
<name>Christian Meier</name>
<email>m.kristian@web.de</email>
</developer>
</developers>
<scm>
<connection>scm:git:https://github.com/mkristian/jruby-mains.git</connection>
<developerConnection>scm:git:ssh://git@github.com:mkristian/jruby-mains.git</developerConnection>
<url>https://github.com/mkristian/jruby-mains</url>
</scm>
<distributionManagement>
<repository>
<id>sonatype-nexus-staging</id>
@ -87,4 +105,57 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<defaultGoal>deploy</defaultGoal>
<plugins>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>