mirror of
https://github.com/gosticks/iota.lib.java.git
synced 2026-10-03 21:16:59 +00:00
Module reorganization and fixes to Travis
Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
This commit is contained in:
+8
-8
@@ -1,11 +1,11 @@
|
||||
/target*
|
||||
/.classpath
|
||||
/.project
|
||||
/.settings
|
||||
/tomcat.*
|
||||
/.idea
|
||||
/*.iml
|
||||
target
|
||||
bin
|
||||
.classpath
|
||||
.project
|
||||
.settings
|
||||
tomcat.*
|
||||
.idea
|
||||
*.iml
|
||||
.classpath
|
||||
.project
|
||||
*.class
|
||||
target/*
|
||||
Vendored
BIN
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.9/apache-maven-3.3.9-bin.zip
|
||||
+38
-29
@@ -1,33 +1,42 @@
|
||||
sudo: required
|
||||
dist: trusty
|
||||
|
||||
language: java
|
||||
jdk:
|
||||
- oraclejdk8
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.m2/repository
|
||||
|
||||
before_install:
|
||||
- openssl aes-256-cbc -K $encrypted_404912dc11ca_key -iv $encrypted_404912dc11ca_iv
|
||||
-in codesigning.asc.enc -out codesigning.asc -d
|
||||
before_script: gpg --fast-import codesigning.asc
|
||||
script: mvn package -P build-extras
|
||||
deploy:
|
||||
- provider: releases
|
||||
api_key:
|
||||
secure: YR8aDGTciBNQgI8GU5DSSm6dzKyZhgmixewIMkbjwrGkdLs/UnD2cfMh2ziNuivpmnIDj2rCMmf6gr1PhQno5nsPPrrFcJs0tIv2LAvAAJst/k32zMK3wv1x54eaTS3SK9VxUdAcnB0N3RvMKLiaqkwTcxa4PY9pWlHnZdc8h9oCqr7JAq8NH/94Ri4AiUc7hDgu6xnZNDqll6gJwdM8kUPQuUsAkkAl2dBVfqB7OeQFkmTvl6Hi5WCn9zbpBpKxE4t/SbgZvH5ccVBKOZveFG38/Mm1ur6VHQ8WvZFnEHps+aq8Sjz8irzcdGHC/hSGvMfsB2LRZHKd8KaRcSCypzuBjNt+ayEaaCd4AcNIsR/cEtC9aOzttNhS6eX4YpdaDjmvlqChjKvR+reKVXK7rb6Z08vHkJC1HOofovfjBP0RXT/O1CsUTpPS0lpNfrNZ0n0GfaHqtqxYrGDsXMFIHX5v39fqwAF2pmpJQaB3CeSLpEM7YbNcPlPRQ/w4XZ5SEN1ENS6a8oenOL+IZNMyspTywG3vQgdc82W5MhjFpUawrReeWd6y5xrHiWBLVPJGsgJQPIY0MkuAGiIGqiT8hSW8x8frYhX9IZ7/x4My6PYL8pCv+zn2V8LBr5KCtjVf3sGrxftlt1eLvQHkw290yRUgcfTAd2Dj8lk8H+jYgXA=
|
||||
file_glob: true
|
||||
file:
|
||||
- "/home/travis/build/iotaledger/iota.lib.java/target/jota*.jar"
|
||||
- "/home/travis/build/iotaledger/iota.lib.java/target/jota*.jar-with-dependencies"
|
||||
- "/home/travis/build/iotaledger/iota.lib.java/target/jota*.jar.asc"
|
||||
- "/home/travis/build/iotaledger/iota.lib.java/target/jota*-sources.jar"
|
||||
- "/home/travis/build/iotaledger/iota.lib.java/target/jota*-sources.jar.asc"
|
||||
- "/home/travis/build/iotaledger/iota.lib.java/target/jota*-javadoc.jar"
|
||||
- "/home/travis/build/iotaledger/iota.lib.java/target/jota*-javadoc.jar.asc"
|
||||
skip_cleanup: true
|
||||
on:
|
||||
tags: true
|
||||
repo: iotaledger/iota.lib.java
|
||||
all_branches: true
|
||||
- provider: script
|
||||
script: chmod u+x .travis/push-jdoc-gh-pages.sh && .travis/push-jdoc-gh-pages.sh
|
||||
skip_cleanup: true
|
||||
on:
|
||||
tags: true
|
||||
repo: iotaledger/iota.lib.java
|
||||
all_branches: true
|
||||
# setup https authentication credentials, used by ./mvnw release:prepare
|
||||
- git config credential.helper "store --file=.git/credentials"
|
||||
- echo "https://$GH_TOKEN:@github.com" > .git/credentials
|
||||
|
||||
install:
|
||||
# Override default travis to use the maven wrapper
|
||||
- ./mvnw install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
||||
|
||||
script:
|
||||
- .travis/publish.sh
|
||||
|
||||
branches:
|
||||
except:
|
||||
- /^[0-9]/
|
||||
|
||||
after_success:
|
||||
- if [ "$TRAVIS_BRANCH" == "master" ]; then ./travis/push-jdoc-gh-pages.sh ; fi
|
||||
|
||||
env:
|
||||
global:
|
||||
# Ex. travis encrypt -r org/repo GH_TOKEN=XXX-https://github.com/settings/tokens-XXX
|
||||
- secure: "GE8IH99UVYXOhMYEN9Urdq5OVRM2V2ZZLpPZESh7DwzHMtVSHYaC3D26fuXfQAM2pzG9YQXVdUVKHpd5/DjhJrWYOWHDyDudd/v79FTN7XRi90IGsPc/ebKViZp1FllImNl7e37C3h11qac6NfXVMemHorwzzDnURRduDq7B1y9Ud0W6tdCRaBCRFVZbcvtLh2H5XfCjKbqK7mf834/cUWJo40uQqIdD9hsMIPnwiE5KdHNTrVFOLaehsljMTWQabfH3VXqWHoBlnrQxMVVti9rjiDKDDM78oAbpymce+DQoe9MWwDKtENmshDJgXMGOPWXFN6v+6Y2hGgakD0hzrmnkAZGgn394lf5Y2+ahcYPBp6SUKf0TTyKgym0haiSInBjytNWPk+v1+OWd5mP4ApNL8CYJb2f1Wwl1HkXkGsFT8xWLIfWzYKKzVpBkjU+Z/oQpCZAekC1JcXnDBs/zwJvvaHO0zGZ0QKYgI21DhJ3xKYA1JQmnBZLnJAYl2880YVqXNH7ocvF+/j13N3FTAsNNzUALXjUZ0OB/gjmQGAKL8AtLNEePuqPC/mq/dIIIruJBiwY2cue+cvjSsV/+allkMK0VnCOfDaJvHtkTXiGEh8KTWcIUAahhNn9Nqm5WBK3mqhyklRvRNFeBOteezIwwqPj54ZfgLGU2i24i6C0="
|
||||
# Ex. travis encrypt -r org/repo SONATYPE_USER=your_sonatype_account
|
||||
- secure: "2S6vJXckX/UhrglVDfeNcN0PstZyfxMrHXv14z776S+po8C9OW1Coit+CgWL7WY4hPtnXnVApIIR5mgszQ5kmC5EEC2s/xQuLS0euSK6ULI9Tn2WVP5IpD0xHF9BQhIhhskBbhAf9miv3kfKwnwGfG71LRfV886Fvqu2e6rzyzUp5Q7eojChOG1WLa91bLJp3VBW3VcCIgHHxR/Tf6R5eZyczz3yVwCIPMHQFD4yjIk6ZhBlyMN6cg75QgbvDxW3lgLBgWjs7jxO44gOYu1ejGe20WohQtHsTQnDxwKZNhF6p9krWCz2LB4PRizgS9lSg9xYRSJ7/KLrzuf/nwfwtYzpt7kNADDf9Mv3BuRJ101wp+TjgyBYOvIsGU3aV4iJudkNfR53vDSS9/RniIONSETgoD8ja6krl3sj7+DUUYCHIRJMHUlQq4pFUn86cC2XDSuFxFE4od9Utyh9P7KbrKjPeviy/WrZMxRY+VGQofHN/w7tBmN4CstN47dpcGtJ4GTLPkrlmIYiErGupnjV6hXjpZ6vKw6A+8Q+WFwpmXXM5RFeOMyiQ+GAhQScQa0dsnunSTyw4IWwi8BlmDLav2p9SdUYgnrFvLgqdExqXcH3YxsPUaeBlh3K7ZeILdGWpX9qZj5H8auEpaC4i6cFizuXb0MIWsKUa1FzrMEwP5Y="
|
||||
# Ex. travis encrypt -r org/repo SONATYPE_PASSWORD=your_sonatype_password
|
||||
- secure: "B1k5jjqMB2EZARpCqfk1WoLGNipMF5hBbz1RoNMiIOjrv5kh7QDqpCgDOahAPpo9LnciM1Znpq8OTrni53qGAhYhOUOOyxUgqiSx3nknoyvxMRC20zjSDUAFaqwcbTGwMFnguihsAEGAXmLT4OxJVEwUE4okELmkqls7xaMuCsEDeAk2mEdmP951DBr7P1hlkC6nkv+JwWgOmtoeCylUH1Uulv1nVbtxlZQ1CccOsFEh9DLGZvtra01oLj2V7sS899sHlbGS48R4e+SoWz4Ui3Xg3n5zTiWj3iL1GLGOZzy4DWRuxggl1HgOmZWhNnx9TLBi4r0MRUQIu7iMinfV3SqJfQQgjZ6hsvT2Xuzg2UuEDF126oxzAxrkpwDvd1VtE6NRORrIAISU0Blmfg9HFII/p5ZBKUtDwxgskKul049p1Du5dHc9taiuGR+EvzLzuWH4FKfhnwmUBLEPF/3V0g+EN1F7vV/SxlDipbvdLEZIVktnk5RCkey4u0+sSiJK1bD4Dx1aAbRdgEbDhcJf2zJY05+CGZEE0ikQ0MEkLx860g/YOiSee4EcZ3W4Wvo1RXaPOrzbug9zLlNfbRtqkJFYS8lGValfz8Iw0o4a5zIQtO/Y0corK8s8PZLRU+1JxBtT27Dg72OGjYaLoVOltEJDqHGWICTj4kNrLpO/waA="
|
||||
# Ex. travis encrypt -r org/repo BINTRAY_USER=your_github_account
|
||||
- secure: "ZQOLJ2LiTrwsffTdbawu3DXVDKSr5uXDgBF7eM8sEFXzKxbDaZCkyblFf5p2TRJMfNA/ntLfVRuD5dvYl36QxhfCRntRCXB2l9eVWlwLx2bg98cJtO9uux6HG0WY1AozDd2tff6t9H/Xegzi0Ib6wupJsMlWyD8aLZG7Rp5hvDCUBtxI/xKt/mt8hiPFc80QivET0nMTatEW8rdMocLPmXxPmqRZtjaoh5DHskr6yqH9Wuhu00qJezK2VupHPK+j4kgdwr0N/Xoa8bvyK25NRuXKt52uEl6O+unf9aFGIOOzJFlpcKuYN6m7esXXlkxpvKCt/HN6GyYZMXiso6pYm+vdt/7vcGACUtIph0CCuuaHSgcTxL8m3UGP7YOomdGV4xwGbaRAtSgGQ4Sv/l7Hwo7aASk3AWDKkh6I1hTqUxGz3U19tOcOflyfovQ1PH+WE9fT5s6kNSNkxl+ngu+yNRkpo//9xfY0bx3APRtQEjqhITJKPSYI4Ix46OVW4BAgU2vRM9xNGBXix5DVrWSKJz1RPuEh0XO7kguPYaT170tTvBneFtJCG4ds8Xm5swkgsLsOJTMpbi6qEKOV9WhiMWi2QVIw8gX4XyazHXR1YOzMArDaTzjISLpVjJAf6nYkhtdO5L92y3V/NyK+7sjQtjMpfz4VDHqQ47JJMYATtbA="
|
||||
# Ex. travis encrypt -r org/repo BINTRAY_KEY=xxx-https://bintray.com/profile/edit-xxx
|
||||
- secure: "GHlAM0hm47AGSjZCx4pqB678/bPolESRWrzglXTIqmlhTY9HN53L92rPGR8/KqGOXYl65cLpEuDxqxnfnBgU9qIVeD628ah2u1pgkRnSLDYdyNzQhEaT5ePoAO9PMfj7kcJWOj4wDxCpGa59XLyrAoe13/9PKAOEuK95jSX7YDfybz33OrrPDPkkV/HdSzHNkxK2Agw00SdNbgeT2XYOsLDjQIgtrQA/XKcx4z3e9Jvw7LuO6KZw0rS+fy1UmnboQgVBMFTE8Gn0J+ewZTkbNIoJzTK5qGVUuFVtinKZWXuKpqnfq9ENwYdbsGkVbJfK+fb8YExwrxnRCfELUeZP8UjXvGVH/WdwR7uYwbUequ5hPw5deK0ZriHmEkUsrSjhh8zZkBvkwoHXMHlRoMwd1WS6tu2ml8HeZ1YvHpdxQ9i9ZtE2bB/9jasSotcp4LL/3jA3zW1Gwdev78LNst8IwTsjMMuNwfjiwwhxvF26MGXI9nylT3rc5lFYMI2/vkm9U0R7QIgBFm5o5s5RC5GFNhhm7XksCDz04m1XJVar9GiqN8/HUkQofXfXTyytlmYPEIuEPB3Xoz3/PFCvVs74Q/yQS38laehdGrZf0ENDqpYmdh9ueY/O7WAG55uwWsERrGLstyoDNxxr04kwsn9I4GnX3n4v2YHouESB/+9Nl0E="
|
||||
|
||||
Executable
+117
@@ -0,0 +1,117 @@
|
||||
set -euo pipefail
|
||||
set -x
|
||||
|
||||
build_started_by_tag() {
|
||||
if [ "${TRAVIS_TAG}" == "" ]; then
|
||||
echo "[Publishing] This build was not started by a tag, publishing snapshot"
|
||||
return 1
|
||||
else
|
||||
echo "[Publishing] This build was started by the tag ${TRAVIS_TAG}, publishing release"
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
is_pull_request() {
|
||||
if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
|
||||
echo "[Not Publishing] This is a Pull Request"
|
||||
return 0
|
||||
else
|
||||
echo "[Publishing] This is not a Pull Request"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
is_travis_branch_master() {
|
||||
if [ "${TRAVIS_BRANCH}" = master ]; then
|
||||
echo "[Publishing] Travis branch is master"
|
||||
return 0
|
||||
else
|
||||
echo "[Not Publishing] Travis branch is not master"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
check_travis_branch_equals_travis_tag() {
|
||||
#Weird comparison comparing branch to tag because when you 'git push --tags'
|
||||
#the branch somehow becomes the tag value
|
||||
#github issue: https://github.com/travis-ci/travis-ci/issues/1675
|
||||
if [ "${TRAVIS_BRANCH}" != "${TRAVIS_TAG}" ]; then
|
||||
echo "Travis branch does not equal Travis tag, which it should, bailing out."
|
||||
echo " github issue: https://github.com/travis-ci/travis-ci/issues/1675"
|
||||
exit 1
|
||||
else
|
||||
echo "[Publishing] Branch (${TRAVIS_BRANCH}) same as Tag (${TRAVIS_TAG})"
|
||||
fi
|
||||
}
|
||||
|
||||
check_release_tag() {
|
||||
tag="${TRAVIS_TAG}"
|
||||
if [[ "$tag" =~ ^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$ ]]; then
|
||||
echo "Build started by version tag $tag. During the release process tags like this"
|
||||
echo "are created by the 'release' Maven plugin. Nothing to do here."
|
||||
exit 0
|
||||
elif [[ ! "$tag" =~ ^release-[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$ ]]; then
|
||||
echo "You must specify a tag of the format 'release-0.0.0' to release this project."
|
||||
echo "The provided tag ${tag} doesn't match that. Aborting."
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
is_release_commit() {
|
||||
project_version=$(./mvnw help:evaluate -N -Dexpression=project.version|grep -v '\[')
|
||||
if [[ "$project_version" =~ ^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$ ]]; then
|
||||
echo "Build started by release commit $project_version. Will synchronize to maven central."
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
release_version() {
|
||||
echo "${TRAVIS_TAG}" | sed 's/^release-//'
|
||||
}
|
||||
|
||||
safe_checkout_master() {
|
||||
# We need to be on a branch for release:perform to be able to create commits, and we want that branch to be master.
|
||||
# But we also want to make sure that we build and release exactly the tagged version, so we verify that the remote
|
||||
# master is where our tag is.
|
||||
git checkout -B master
|
||||
git fetch origin master:origin/master
|
||||
commit_local_master="$(git show --pretty='format:%H' master)"
|
||||
commit_remote_master="$(git show --pretty='format:%H' origin/master)"
|
||||
if [ "$commit_local_master" != "$commit_remote_master" ]; then
|
||||
echo "Master on remote 'origin' has commits since the version under release, aborting"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
#----------------------
|
||||
# MAIN
|
||||
#----------------------
|
||||
|
||||
if ! is_pull_request && build_started_by_tag; then
|
||||
check_travis_branch_equals_travis_tag
|
||||
check_release_tag
|
||||
fi
|
||||
|
||||
./mvnw install -nsu
|
||||
|
||||
# If we are on a pull request, our only job is to run tests, which happened above via ./mvnw install
|
||||
if is_pull_request; then
|
||||
true
|
||||
# If we are on master, we will deploy the latest snapshot or release version
|
||||
# - If a release commit fails to deploy for a transient reason, delete the broken version from bintray and click rebuild
|
||||
elif is_travis_branch_master; then
|
||||
./mvnw --batch-mode -s ./.settings.xml -Prelease -nsu -DskipTests deploy
|
||||
|
||||
# If the deployment succeeded, sync it to Maven Central. Note: this needs to be done once per project, not module, hence -N
|
||||
if is_release_commit; then
|
||||
./mvnw --batch-mode -s ./.settings.xml -nsu -N io.zipkin.centralsync-maven-plugin:centralsync-maven-plugin:sync
|
||||
fi
|
||||
|
||||
# If we are on a release tag, the following will update any version references and push a version tag for deployment.
|
||||
elif build_started_by_tag; then
|
||||
safe_checkout_master
|
||||
./mvnw --batch-mode -s ./.settings.xml -Prelease -nsu -DreleaseVersion="$(release_version)" -Darguments="-DskipTests" release:prepare
|
||||
fi
|
||||
|
||||
Regular → Executable
+1
-1
@@ -4,7 +4,7 @@ if [ "$TRAVIS_REPO_SLUG" == "iotaledger/iota.lib.java" ] && [ "$TRAVIS_PULL_REQU
|
||||
|
||||
echo -e "Publishing javadoc...\n"
|
||||
|
||||
cp -R "/home/travis/build/iotaledger/iota.lib.java/target/apidocs/" $HOME/javadoc-latest
|
||||
cp -R "/home/travis/build/iotaledger/iota.lib.java/jota/target/apidocs/" $HOME/javadoc-latest
|
||||
|
||||
cd $HOME
|
||||
git config --global user.email "travis@travis-ci.org"
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
== Contributing
|
||||
|
||||
*Thank you for your interest in contributing to this project!*
|
||||
|
||||
We welcome all contributions and we'd like to help you send your first contribution to us.
|
||||
For that, this is what we recommend:
|
||||
|
||||
1. Look into the existing issues (or create a new one)
|
||||
1. Discuss the possible solution
|
||||
1. Code!
|
||||
1. Test
|
||||
1. Send a PR
|
||||
|
||||
=== Look
|
||||
|
||||
Take a look at the existing issues: perhaps there's one already related to the feature you want
|
||||
to contribute! Otherwise, open a new one, describing the problem and your suggestion for the solution.
|
||||
For bugs, it would be wonderful if you add a way to reproduce the issue.
|
||||
|
||||
=== Discuss
|
||||
|
||||
Usually, opening an issue is enough to get a feedback. If you prefer, join us on Slack, under
|
||||
the `#developers` channel.
|
||||
|
||||
=== Code
|
||||
|
||||
Once you feel comfortable that the issue has been discussed and a general approach is agreed upon,
|
||||
it's time to start coding.
|
||||
|
||||
First, fork this repository into your own namespace, clone it and add this repository as `upstream`:
|
||||
|
||||
```bash
|
||||
git clone git@github.com:YOUR_USERNAME/iota.lib.java.git
|
||||
git remote add upstream git@github.com:iotaledger/iota.lib.java.git
|
||||
```
|
||||
|
||||
Then, create a new local branch based off of `master`, like this:
|
||||
|
||||
```bash
|
||||
git fetch upstream
|
||||
git rebase upstream/master
|
||||
git checkout -b MyTopicBranch
|
||||
```
|
||||
|
||||
Run a sanity check build with `mvn clean install`. It should complete successfully without errors
|
||||
or test failures.
|
||||
|
||||
If everything worked, then do your changes as desired. Once you are done, run a local build with
|
||||
`mvn clean install` to make sure nothing is broken. Ideally, your code should include tests for
|
||||
the bugs you are fixing or for features you are adding. If you don't know how to test, it's OK to
|
||||
open the PR with a title saying "[wip]" (for Work in Progress). We can guide you on how to write tests.
|
||||
|
||||
=== Send
|
||||
|
||||
Once your code is ready for a review or if you want feedback, send your branch as a pull request on
|
||||
GitHub. If your branch is not ready to be merged for some reason, add "[wip]" to the title. It is
|
||||
expected that all PRs are passing the continuous integration test.
|
||||
|
||||
During this process, someone will take a look at your contributions and make comments, ask questions
|
||||
and suggest different approaches. Even though the reviewer strives to be polite, don't take a
|
||||
possible criticism personally. After all, we'd really love to get your contribution!
|
||||
@@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "{}"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright {yyyy} {name of copyright owner}
|
||||
|
||||
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.
|
||||
@@ -0,0 +1,22 @@
|
||||
## Release process
|
||||
|
||||
This project uses a simplified release process, where you only need to push a tag starting with
|
||||
`release-`, followed by a version number. For instance, pushing a tag named `release-0.9.3` would
|
||||
tell Travis to release the version `0.9.3`.
|
||||
|
||||
### TL;DR
|
||||
|
||||
```bash
|
||||
git checkout master
|
||||
git fetch upstream
|
||||
git rebase upstream/master
|
||||
git tag release-0.9.3
|
||||
git push upstream release-0.9.3
|
||||
```
|
||||
|
||||
### Long version
|
||||
|
||||
Once a new tag is pushed to the main repository, a Travis build will be started for it. Once the
|
||||
build script detects that it's a release build, it will start a new Maven release process
|
||||
(`mvn release:prepare release:perform`) and upload the artifacts to Bintray, which is synchronized
|
||||
with Maven Central.
|
||||
Binary file not shown.
@@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.iota</groupId>
|
||||
<artifactId>jota-parent</artifactId>
|
||||
<version>0.9.6-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<name>JOTA : Library</name>
|
||||
<artifactId>jota</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.bouncycastle</groupId>
|
||||
<artifactId>bcprov-jdk15on</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.squareup.retrofit2</groupId>
|
||||
<artifactId>retrofit</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.squareup.retrofit2</groupId>
|
||||
<artifactId>converter-gson</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-io</groupId>
|
||||
<artifactId>commons-io</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user