Skip to content

Commit

Permalink
added maven release plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
rmpestano committed Sep 13, 2016
1 parent 71b9153 commit f8e9415
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
12 changes: 12 additions & 0 deletions examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,17 @@

<name>DBUnit Rules examples</name>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.7</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>

</project>
46 changes: 45 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
<connection>scm:git:https://github.com/rmpestano/dbunit-rules.git</connection>
<developerConnection>scm:git:git@github.com:rmpestano/dbunit-rules.git</developerConnection>
<url>https://github.com/rmpestano/dbunit-rules.git</url>
</scm>
<tag>HEAD</tag>
</scm>

<ciManagement>
<system>tranvis-ci.org</system>
Expand Down Expand Up @@ -191,6 +192,15 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.4.1</version>
<configuration>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<autoVersionSubmodules>true</autoVersionSubmodules>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
Expand Down Expand Up @@ -287,13 +297,47 @@
</dependencies>
</profile>

<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

</profiles>

<distributionManagement>
<snapshotRepository>
<id>snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>bintray</id>
<url>https://api.bintray.com/maven/rmpestano/dbunit-rules/dbunit-rules</url>
</repository>
</distributionManagement>


Expand Down

0 comments on commit f8e9415

Please sign in to comment.