diff --git a/.gitignore b/.gitignore
index f0dd5d2..f81c81c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -31,4 +31,6 @@ build/
.vscode/
#Mac
-.DS_Store
\ No newline at end of file
+.DS_Store
+
+my-settings.xml
\ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
index 71f9d3c..1a2d30d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,6 +4,7 @@ jdk:
dist: trusty
after_success:
- bash <(curl -s https://codecov.io/bash)
+- "[[ $TRAVIS_BRANCH == \"master\" ]] && { mvn deploy --settings travis-settings.xml -DskipTests=true -B; };"
before_deploy:
- "mvn -DskipTests package"
- export FILE_TO_UPLOAD=$(ls target/grpc-apm-spring-boot-starter-*.jar)
diff --git a/README.md b/README.md
index bbd8c32..5df6a25 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,6 @@
# Spring boot starter for [gRPC framework](https://grpc.io/) with [Elastic APM tracer](https://www.elastic.co/products/apm)
+[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.majusko/grpc-apm-spring-boot-starter/badge.svg)](https://search.maven.org/search?q=g:io.github.majusko)
[![Release](https://jitpack.io/v/majusko/grpc-apm-spring-boot-starter.svg)](https://jitpack.io/#majusko/grpc-apm-spring-boot-starter)
[![Build Status](https://travis-ci.com/majusko/grpc-apm-spring-boot-starter.svg?branch=master)](https://travis-ci.com/majusko/grpc-apm-spring-boot-starter)
[![Test Coverage](https://codecov.io/gh/majusko/grpc-apm-spring-boot-starter/branch/master/graph/badge.svg)](https://codecov.io/gh/majusko/grpc-apm-spring-boot-starter/branch/master)
@@ -16,15 +17,6 @@ Quick start consist only from 2 simple steps.
#### 1. Add Maven dependency
-```xml
-
-
- jitpack.io
- https://jitpack.io
-
-
-```
-
```xml
io.github.majusko
diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000..d4923c9
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,27 @@
+# Release process
+
+### 1. On some machines you need to run this first
+
+Because of: https://github.com/keybase/keybase-issues/issues/2798
+
+```yaml
+export GPG_TTY=$(tty)
+```
+
+### 2. Prepare your `my-settings.xml`
+
+```xml
+
+
+ ossrh
+ ${env.SONATYPE_USERNAME}
+ ${env.SONATYPE_PASSWORD}
+
+
+```
+
+### 3. Execute release command
+
+```yaml
+mvn clean deploy -P release-sign-artifacts --settings my-settings.xml
+```
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 6c9db1d..9143ce1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -12,7 +12,7 @@
io.github.majusko
grpc-apm-spring-boot-starter
- 1.0.4-SNAPSHOT
+ 1.0.4
grpc-apm-spring-boot-starter
Elastic APM Tracer for your Grpc Spring Boot project
@@ -95,6 +95,64 @@
+
+
+ release-sign-artifacts
+
+
+ performRelease
+ true
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+ 3.0.1
+
+
+ attach-sources
+
+ jar-no-fork
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 3.1.1
+
+ false
+
+
+
+ attach-javadocs
+
+ jar
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-gpg-plugin
+
+
+ sign-artifacts
+ verify
+
+ sign
+
+
+
+
+
+
+
+
+
@@ -191,4 +249,15 @@
https://github.com/majusko
+
+
+
+ ossrh
+ https://oss.sonatype.org/content/repositories/snapshots
+
+
+ ossrh
+ https://oss.sonatype.org/service/local/staging/deploy/maven2/
+
+
diff --git a/travis-settings.xml b/travis-settings.xml
new file mode 100755
index 0000000..b13e725
--- /dev/null
+++ b/travis-settings.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+ ossrh
+ ${env.SONATYPE_USERNAME}
+ ${env.SONATYPE_PASSWORD}
+
+
+