Skip to content

Commit 823643e

Browse files
committed
make it right...
1 parent cc6ea7e commit 823643e

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

.travis.yml

-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ script:
1515
before_deploy:
1616
- ./mvnw help:evaluate -N -Dexpression=project.version | grep -v '\['
1717
- export project_version=$(./mvnw help:evaluate -N -Dexpression=project.version | grep -v '\[')
18-
- echo "${GPG_SECRET_KEYS}" | base64 --decode | "${GPG_EXECUTABLE}" --batch --passphrase "${GPG_PASSPHRASE}" --import
19-
- echo "${GPG_OWNERTRUST}" | base64 --decode | "${GPG_EXECUTABLE}" --batch --passphrase "${GPG_PASSPHRASE}" --import-ownertrust
20-
- ./mvnw -DskipTests -Dmaven.test.skip=true -Dfindbugs.skip=true -Dpmd.skip=true -Dcheckstyle.skip -Dmaven.javadoc.skip=false --settings .settings.xml deploy -B
2118

2219
deploy:
2320
provider: releases

README.md

+25
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,31 @@ $> mvn clean test
6262

6363
Also, if you do `package` or `install` goals, the tests launch automatically.
6464

65+
## Deploy
66+
67+
To deploy the project in Maven Central, use the following command:
68+
69+
```bash
70+
$> ./mvnw \
71+
-DskipTests \
72+
-Dmaven.test.skip=true \
73+
-Dfindbugs.skip=true \
74+
-Dpmd.skip=true \
75+
-Dcheckstyle.skip \
76+
-Dmaven.javadoc.skip=false \
77+
--settings .settings.xml \
78+
deploy -B
79+
```
80+
81+
It maybe usefull to import `gpg`'s secret keys and ownertrust from somewhere:
82+
83+
```bash
84+
$> echo "${GPG_SECRET_KEYS}" | base64 --decode | "${GPG_EXECUTABLE}" --batch --passphrase "${GPG_PASSPHRASE}" --import
85+
...
86+
$> echo "${GPG_OWNERTRUST}" | base64 --decode | "${GPG_EXECUTABLE}" --batch --passphrase "${GPG_PASSPHRASE}" --import-ownertrust
87+
...
88+
```
89+
6590
## Built With
6691

6792
* [Java](http://www.oracle.com/technetwork/java/javase) - is a systems and applications programming language

0 commit comments

Comments
 (0)