Skip to content

Commit 49f0193

Browse files
authored
Merge pull request #8 from vikadata/dev
Dev
2 parents 7c0d29c + bf7f267 commit 49f0193

File tree

2 files changed

+79
-1
lines changed

2 files changed

+79
-1
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,10 @@ deploy:
3535
provider: script
3636
script: bash .ci/deploy.sh snapshot
3737
on:
38-
branch: dev
38+
branch: master
39+
- skip_cleanup: true
40+
provider: script
41+
script: bash .ci/deploy.sh release
42+
on:
43+
tags: true
44+

pom.xml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version>
3535
<jacoco-maven-plugin.version>0.8.6</jacoco-maven-plugin.version>
3636
<coveralls-maven-plugin.version>4.3.0</coveralls-maven-plugin.version>
37+
<version-maven-plugin.version>2.8.1</version-maven-plugin.version>
3738

3839
<!--Dependency Version-->
3940
<jackson.version>2.11.3</jackson.version>
@@ -298,6 +299,10 @@
298299
</execution>
299300
</executions>
300301
</plugin>
302+
<plugin>
303+
<groupId>org.codehaus.mojo</groupId>
304+
<artifactId>versions-maven-plugin</artifactId>
305+
</plugin>
301306
</plugins>
302307
<!--Plugin Dependency Management-->
303308
<pluginManagement>
@@ -391,6 +396,11 @@
391396
<artifactId>coveralls-maven-plugin</artifactId>
392397
<version>${coveralls-maven-plugin.version}</version>
393398
</plugin>
399+
<plugin>
400+
<groupId>org.codehaus.mojo</groupId>
401+
<artifactId>versions-maven-plugin</artifactId>
402+
<version>${version-maven-plugin.version}</version>
403+
</plugin>
394404
</plugins>
395405
</pluginManagement>
396406
</build>
@@ -449,6 +459,68 @@
449459
</plugins>
450460
</build>
451461
</profile>
462+
<profile>
463+
<id>release</id>
464+
<properties>
465+
<maven.test.skip>true</maven.test.skip>
466+
</properties>
467+
<build>
468+
<plugins>
469+
<plugin>
470+
<groupId>org.jacoco</groupId>
471+
<artifactId>jacoco-maven-plugin</artifactId>
472+
<executions>
473+
<!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as
474+
VM argument when Maven the Surefire plugin is executed. -->
475+
<execution>
476+
<id>pre-unit-test</id>
477+
<goals>
478+
<goal>prepare-agent</goal>
479+
</goals>
480+
</execution>
481+
<!-- Ensures that the code coverage report for unit tests is created after unit tests have
482+
been run. -->
483+
<execution>
484+
<id>post-unit-test</id>
485+
<phase>test</phase>
486+
<goals>
487+
<goal>report</goal>
488+
</goals>
489+
</execution>
490+
</executions>
491+
</plugin>
492+
<plugin>
493+
<groupId>org.eluder.coveralls</groupId>
494+
<artifactId>coveralls-maven-plugin</artifactId>
495+
</plugin>
496+
<plugin>
497+
<groupId>org.apache.maven.plugins</groupId>
498+
<artifactId>maven-deploy-plugin</artifactId>
499+
<configuration>
500+
<skip>true</skip>
501+
</configuration>
502+
</plugin>
503+
<plugin>
504+
<groupId>org.sonatype.plugins</groupId>
505+
<artifactId>nexus-staging-maven-plugin</artifactId>
506+
<executions>
507+
<execution>
508+
<id>deploy-to-sonatype</id>
509+
<phase>deploy</phase>
510+
<goals>
511+
<goal>deploy</goal>
512+
<goal>release</goal>
513+
</goals>
514+
</execution>
515+
</executions>
516+
<configuration>
517+
<serverId>sonatype</serverId>
518+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
519+
</configuration>
520+
</plugin>
521+
</plugins>
522+
</build>
523+
</profile>
452524
</profiles>
453525

454526
<distributionManagement>

0 commit comments

Comments
 (0)