Things to allow opening.

This commit is contained in:
Jake Wharton 2015-03-27 00:29:13 -04:00
parent 1e741c0f71
commit 1ba702fc42
5 changed files with 89 additions and 1 deletions

26
.buildscript/deploy_snapshot.sh Executable file
View file

@ -0,0 +1,26 @@
#!/bin/bash
#
# Deploy a jar, source jar, and javadoc jar to Sonatype's snapshot repo.
#
# Adapted from https://coderwall.com/p/9b_lfq and
# http://benlimmer.com/2013/12/26/automatically-publish-javadoc-to-gh-pages-with-travis-ci/
SLUG="square/moshi"
JDK="oraclejdk8"
BRANCH="master"
set -e
if [ "$TRAVIS_REPO_SLUG" != "$SLUG" ]; then
echo "Skipping snapshot deployment: wrong repository. Expected '$SLUG' but was '$TRAVIS_REPO_SLUG'."
elif [ "$TRAVIS_JDK_VERSION" != "$JDK" ]; then
echo "Skipping snapshot deployment: wrong JDK. Expected '$JDK' but was '$TRAVIS_JDK_VERSION'."
elif [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo "Skipping snapshot deployment: was pull request."
elif [ "$TRAVIS_BRANCH" != "$BRANCH" ]; then
echo "Skipping snapshot deployment: wrong branch. Expected '$BRANCH' but was '$TRAVIS_BRANCH'."
else
echo "Deploying snapshot..."
mvn clean source:jar javadoc:jar deploy --settings=".buildscript/settings.xml" -Dmaven.test.skip=true
echo "Snapshot deployed!"
fi

View file

@ -0,0 +1,9 @@
<settings>
<servers>
<server>
<id>sonatype-nexus-snapshots</id>
<username>${env.CI_DEPLOY_USERNAME}</username>
<password>${env.CI_DEPLOY_PASSWORD}</password>
</server>
</servers>
</settings>

26
.travis.yml Normal file
View file

@ -0,0 +1,26 @@
language: java
jdk:
- oraclejdk7
- oraclejdk8
after_success:
- .buildscript/deploy_snapshot.sh
env:
global:
- secure: "TODO get me!"
- secure: "TODO get me!"
branches:
except:
- gh-pages
notifications:
email: false
sudo: false
cache:
directories:
- $HOME/.m2

View file

@ -3,7 +3,7 @@ Change Log
## Version 0.1.0
_2014-08-09_
_In Development_
* Initial code creation.
* Imported JsonReader and JsonWriter from Gson.

View file

@ -3,3 +3,30 @@ Moshi
A modern JSON library for Android and Java.
Download
--------
Moshi is currently under development.
Snapshots of the development version are available in [Sonatype's `snapshots` repository][snap].
License
--------
Copyright 2015 Square, Inc.
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.