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:
28
deploy/maven/sonatype-settings.xml
Normal file
28
deploy/maven/sonatype-settings.xml
Normal 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
BIN
deploy/pubring.gpg.enc
Normal file
Binary file not shown.
8
deploy/scripts/publish.sh
Executable file
8
deploy/scripts/publish.sh
Executable 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
BIN
deploy/secring.gpg.enc
Normal file
Binary file not shown.
Reference in New Issue
Block a user