Skip to content

Commit 2f73b54

Browse files
author
antonybi
committed
fix building on travis
1 parent 6c7669b commit 2f73b54

File tree

2 files changed

+61
-52
lines changed

2 files changed

+61
-52
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
[![Build Status](https://app.travis-ci.com/antonybi/timechannel.java.svg?branch=master)](https://app.travis-ci.com/antonybi/timechannel.java)
44
[![Coverage Status](https://coveralls.io/repos/github/antonybi/timechannel.java/badge.svg?branch=master)](https://coveralls.io/github/antonybi/timechannel.java?branch=master)
55
[![Maven central](https://maven-badges.herokuapp.com/maven-central/io.github.antonybi/timechannel/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.github.antonybi/timechannel)
6-
[![GitHub release](https://img.shields.io/github/release/antonybi/timechannel.java.svg)](https://github.com/antonybi/timechannel.java/releases)
76
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://opensource.org/licenses/MIT)
87

98

pom.xml

Lines changed: 61 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -137,60 +137,70 @@
137137
<target>${java.version}</target>
138138
</configuration>
139139
</plugin>
140-
<plugin>
141-
<groupId>org.sonatype.plugins</groupId>
142-
<artifactId>nexus-staging-maven-plugin</artifactId>
143-
<version>1.6.7</version>
144-
<extensions>true</extensions>
145-
<configuration>
146-
<serverId>ossrh</serverId>
147-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
148-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
149-
</configuration>
150-
</plugin>
151-
<plugin>
152-
<groupId>org.apache.maven.plugins</groupId>
153-
<artifactId>maven-source-plugin</artifactId>
154-
<version>2.2.1</version>
155-
<executions>
156-
<execution>
157-
<id>attach-sources</id>
158-
<goals>
159-
<goal>jar-no-fork</goal>
160-
</goals>
161-
</execution>
162-
</executions>
163-
</plugin>
164-
<plugin>
165-
<groupId>org.apache.maven.plugins</groupId>
166-
<artifactId>maven-javadoc-plugin</artifactId>
167-
<version>2.9.1</version>
168-
<executions>
169-
<execution>
170-
<id>attach-javadocs</id>
171-
<goals>
172-
<goal>jar</goal>
173-
</goals>
174-
</execution>
175-
</executions>
176-
</plugin>
177-
<plugin>
178-
<groupId>org.apache.maven.plugins</groupId>
179-
<artifactId>maven-gpg-plugin</artifactId>
180-
<version>1.6</version>
181-
<executions>
182-
<execution>
183-
<id>sign-artifacts</id>
184-
<phase>verify</phase>
185-
<goals>
186-
<goal>sign</goal>
187-
</goals>
188-
</execution>
189-
</executions>
190-
</plugin>
191140
</plugins>
192141
</build>
193142

143+
<profiles>
144+
<profile>
145+
<id>release</id>
146+
<build>
147+
<plugins>
148+
<plugin>
149+
<groupId>org.apache.maven.plugins</groupId>
150+
<artifactId>maven-source-plugin</artifactId>
151+
<version>2.2.1</version>
152+
<executions>
153+
<execution>
154+
<id>attach-sources</id>
155+
<goals>
156+
<goal>jar-no-fork</goal>
157+
</goals>
158+
</execution>
159+
</executions>
160+
</plugin>
161+
<plugin>
162+
<groupId>org.apache.maven.plugins</groupId>
163+
<artifactId>maven-javadoc-plugin</artifactId>
164+
<version>2.9.1</version>
165+
<executions>
166+
<execution>
167+
<id>attach-javadocs</id>
168+
<goals>
169+
<goal>jar</goal>
170+
</goals>
171+
</execution>
172+
</executions>
173+
</plugin>
174+
<plugin>
175+
<groupId>org.sonatype.plugins</groupId>
176+
<artifactId>nexus-staging-maven-plugin</artifactId>
177+
<version>1.6.7</version>
178+
<extensions>true</extensions>
179+
<configuration>
180+
<serverId>ossrh</serverId>
181+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
182+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
183+
</configuration>
184+
</plugin>
185+
<plugin>
186+
<groupId>org.apache.maven.plugins</groupId>
187+
<artifactId>maven-gpg-plugin</artifactId>
188+
<version>1.6</version>
189+
<executions>
190+
<execution>
191+
<id>sign-artifacts</id>
192+
<phase>verify</phase>
193+
<goals>
194+
<goal>sign</goal>
195+
</goals>
196+
</execution>
197+
</executions>
198+
</plugin>
199+
</plugins>
200+
</build>
201+
</profile>
202+
</profiles>
203+
194204
<distributionManagement>
195205
<snapshotRepository>
196206
<id>ossrh</id>

0 commit comments

Comments
 (0)