Skip to content

Commit b7f44c3

Browse files
authored
Merge pull request #24 from majusko/feature/maven-central-deploy
Feature/maven central deploy
2 parents f4d909f + a8ea567 commit b7f44c3

File tree

4 files changed

+29
-9
lines changed

4 files changed

+29
-9
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ services:
66
- docker
77
after_success:
88
- bash <(curl -s https://codecov.io/bash)
9+
- "[[ $TRAVIS_BRANCH == \"master\" ]] && { mvn deploy --settings travis-settings.xml -DskipTests=true -B; };"
910
before_deploy:
1011
- "mvn -DskipTests package"
1112
- export FILE_TO_UPLOAD=$(ls target/pulsar-java-spring-boot-starter-*.jar)

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Spring boot starter for [Apache Pulsar](https://pulsar.apache.org/)
22

3+
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.majusko/pulsar-java-spring-boot-starter/badge.svg)](https://search.maven.org/search?q=g:io.github.majusko)
34
[![Release](https://jitpack.io/v/majusko/pulsar-java-spring-boot-starter.svg)](https://jitpack.io/#majusko/pulsar-java-spring-boot-starter)
45
[![Build Status](https://travis-ci.com/majusko/pulsar-java-spring-boot-starter.svg?branch=master)](https://travis-ci.com/majusko/pulsar-java-spring-boot-starter)
56
[![Test Coverage](https://codecov.io/gh/majusko/pulsar-java-spring-boot-starter/branch/master/graph/badge.svg)](https://codecov.io/gh/majusko/pulsar-java-spring-boot-starter/branch/master)
@@ -11,15 +12,6 @@ Simple start consist only from 3 simple steps.
1112

1213
#### 1. Add Maven dependency
1314

14-
```xml
15-
<repositories>
16-
<repository>
17-
<id>jitpack.io</id>
18-
<url>https://jitpack.io</url>
19-
</repository>
20-
</repositories>
21-
```
22-
2315
```xml
2416
<dependency>
2517
<groupId>io.github.majusko</groupId>
@@ -76,6 +68,10 @@ class MyConsumer {
7668
}
7769
```
7870

71+
## Example project
72+
73+
#### [Java Pulsar Example Project](https://github.com/majusko/java-pulsar-example)
74+
7975
## Documentation
8076

8177
### Configuration

pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,15 @@
149149
</plugins>
150150
</build>
151151

152+
<distributionManagement>
153+
<snapshotRepository>
154+
<id>ossrh</id>
155+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
156+
</snapshotRepository>
157+
<repository>
158+
<id>ossrh</id>
159+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
160+
</repository>
161+
</distributionManagement>
162+
152163
</project>

travis-settings.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4+
<servers>
5+
<server>
6+
<!-- Maven Central Deployment -->
7+
<id>ossrh</id>
8+
<username>${env.SONATYPE_USERNAME}</username>
9+
<password>${env.SONATYPE_PASSWORD}</password>
10+
</server>
11+
</servers>
12+
</settings>

0 commit comments

Comments
 (0)