1
0

Added needed section to deploy to maven central. Adding travis-settings to be able to publish to maven central (through oss.sonatype) on push to uber/hoodie master

This commit is contained in:
Prasanna Rajaperumal
2016-12-21 00:26:56 -08:00
parent 5d44ae3dbd
commit f851278294
5 changed files with 124 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<!--
~ Copyright (c) 2016 Uber Technologies, Inc. (hoodie-dev-group@uber.com)
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>ossrh</id>
<username>${env.SONATYPE_USERNAME}</username>
<password>${env.SONATYPE_PASSWORD}</password>
</server>
</servers>
</settings>

BIN
deploy/pubring.gpg.enc Normal file

Binary file not shown.

8
deploy/scripts/publish.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -e
SCRIPT_DIR=`dirname $0`
DEPLOY_DIR=$SCRIPT_DIR/..
openssl aes-256-cbc -pass pass:$gpg.passphrase -in $DEPLOY_DIR/pubring.gpg.enc -out pubring.gpg -d
openssl aes-256-cbc -pass pass:$gpg.passphrase -in $DEPLOY_DIR/secring.gpg.enc -out secring.gpg -d

BIN
deploy/secring.gpg.enc Normal file

Binary file not shown.