diff --git a/.gitignore b/.gitignore index bd0ceec..29b202a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,11 @@ -/target* -/.classpath -/.project -/.settings -/tomcat.* -/.idea -/*.iml +target +bin +.classpath +.project +.settings +tomcat.* +.idea +*.iml .classpath .project *.class -target/* \ No newline at end of file diff --git a/.mvn/wrapper/maven-wrapper.jar b/.mvn/wrapper/maven-wrapper.jar new file mode 100644 index 0000000..c6feb8b Binary files /dev/null and b/.mvn/wrapper/maven-wrapper.jar differ diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties new file mode 100644 index 0000000..6637ced --- /dev/null +++ b/.mvn/wrapper/maven-wrapper.properties @@ -0,0 +1 @@ +distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.9/apache-maven-3.3.9-bin.zip \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index ac57f5b..24c5dfd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 \ No newline at end of file + # 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=" diff --git a/.travis/publish.sh b/.travis/publish.sh new file mode 100755 index 0000000..43c60b4 --- /dev/null +++ b/.travis/publish.sh @@ -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 + diff --git a/.travis/push-jdoc-gh-pages.sh b/.travis/push-jdoc-gh-pages.sh old mode 100644 new mode 100755 index 9e9f560..158b6ca --- a/.travis/push-jdoc-gh-pages.sh +++ b/.travis/push-jdoc-gh-pages.sh @@ -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" diff --git a/CONTRIBUTING.adoc b/CONTRIBUTING.adoc new file mode 100644 index 0000000..3cbec8b --- /dev/null +++ b/CONTRIBUTING.adoc @@ -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! \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..8dada3e --- /dev/null +++ b/LICENSE @@ -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. diff --git a/README.md b/README.adoc similarity index 100% rename from README.md rename to README.adoc diff --git a/RELEASE.adoc b/RELEASE.adoc new file mode 100644 index 0000000..59a7d42 --- /dev/null +++ b/RELEASE.adoc @@ -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. \ No newline at end of file diff --git a/codesigning.asc.enc b/codesigning.asc.enc deleted file mode 100644 index 266c186..0000000 Binary files a/codesigning.asc.enc and /dev/null differ diff --git a/jota/pom.xml b/jota/pom.xml new file mode 100644 index 0000000..683f4fc --- /dev/null +++ b/jota/pom.xml @@ -0,0 +1,46 @@ + + + 4.0.0 + + + org.iota + jota-parent + 0.9.6-SNAPSHOT + + + JOTA : Library + jota + + + + org.bouncycastle + bcprov-jdk15on + + + com.squareup.retrofit2 + retrofit + + + com.squareup.retrofit2 + converter-gson + + + org.apache.commons + commons-lang3 + + + org.slf4j + slf4j-api + + + commons-io + commons-io + + + + junit + junit + test + + + diff --git a/src/main/java/cfb/pearldiver/PearlDiver.java b/jota/src/main/java/cfb/pearldiver/PearlDiver.java similarity index 100% rename from src/main/java/cfb/pearldiver/PearlDiver.java rename to jota/src/main/java/cfb/pearldiver/PearlDiver.java diff --git a/src/main/java/cfb/pearldiver/PearlDiverLocalPoW.java b/jota/src/main/java/cfb/pearldiver/PearlDiverLocalPoW.java similarity index 100% rename from src/main/java/cfb/pearldiver/PearlDiverLocalPoW.java rename to jota/src/main/java/cfb/pearldiver/PearlDiverLocalPoW.java diff --git a/src/main/java/jota/IotaAPI.java b/jota/src/main/java/jota/IotaAPI.java similarity index 100% rename from src/main/java/jota/IotaAPI.java rename to jota/src/main/java/jota/IotaAPI.java diff --git a/src/main/java/jota/IotaAPICommands.java b/jota/src/main/java/jota/IotaAPICommands.java similarity index 100% rename from src/main/java/jota/IotaAPICommands.java rename to jota/src/main/java/jota/IotaAPICommands.java diff --git a/src/main/java/jota/IotaAPICore.java b/jota/src/main/java/jota/IotaAPICore.java similarity index 100% rename from src/main/java/jota/IotaAPICore.java rename to jota/src/main/java/jota/IotaAPICore.java diff --git a/src/main/java/jota/IotaAPIService.java b/jota/src/main/java/jota/IotaAPIService.java similarity index 100% rename from src/main/java/jota/IotaAPIService.java rename to jota/src/main/java/jota/IotaAPIService.java diff --git a/src/main/java/jota/IotaLocalPoW.java b/jota/src/main/java/jota/IotaLocalPoW.java similarity index 100% rename from src/main/java/jota/IotaLocalPoW.java rename to jota/src/main/java/jota/IotaLocalPoW.java diff --git a/src/main/java/jota/dto/request/IotaAttachToTangleRequest.java b/jota/src/main/java/jota/dto/request/IotaAttachToTangleRequest.java similarity index 100% rename from src/main/java/jota/dto/request/IotaAttachToTangleRequest.java rename to jota/src/main/java/jota/dto/request/IotaAttachToTangleRequest.java diff --git a/src/main/java/jota/dto/request/IotaBroadcastTransactionRequest.java b/jota/src/main/java/jota/dto/request/IotaBroadcastTransactionRequest.java similarity index 100% rename from src/main/java/jota/dto/request/IotaBroadcastTransactionRequest.java rename to jota/src/main/java/jota/dto/request/IotaBroadcastTransactionRequest.java diff --git a/src/main/java/jota/dto/request/IotaCommandRequest.java b/jota/src/main/java/jota/dto/request/IotaCommandRequest.java similarity index 100% rename from src/main/java/jota/dto/request/IotaCommandRequest.java rename to jota/src/main/java/jota/dto/request/IotaCommandRequest.java diff --git a/src/main/java/jota/dto/request/IotaFindTransactionsRequest.java b/jota/src/main/java/jota/dto/request/IotaFindTransactionsRequest.java similarity index 100% rename from src/main/java/jota/dto/request/IotaFindTransactionsRequest.java rename to jota/src/main/java/jota/dto/request/IotaFindTransactionsRequest.java diff --git a/src/main/java/jota/dto/request/IotaGetBalancesRequest.java b/jota/src/main/java/jota/dto/request/IotaGetBalancesRequest.java similarity index 100% rename from src/main/java/jota/dto/request/IotaGetBalancesRequest.java rename to jota/src/main/java/jota/dto/request/IotaGetBalancesRequest.java diff --git a/src/main/java/jota/dto/request/IotaGetInclusionStateRequest.java b/jota/src/main/java/jota/dto/request/IotaGetInclusionStateRequest.java similarity index 100% rename from src/main/java/jota/dto/request/IotaGetInclusionStateRequest.java rename to jota/src/main/java/jota/dto/request/IotaGetInclusionStateRequest.java diff --git a/src/main/java/jota/dto/request/IotaGetTransactionsToApproveRequest.java b/jota/src/main/java/jota/dto/request/IotaGetTransactionsToApproveRequest.java similarity index 100% rename from src/main/java/jota/dto/request/IotaGetTransactionsToApproveRequest.java rename to jota/src/main/java/jota/dto/request/IotaGetTransactionsToApproveRequest.java diff --git a/src/main/java/jota/dto/request/IotaGetTrytesRequest.java b/jota/src/main/java/jota/dto/request/IotaGetTrytesRequest.java similarity index 100% rename from src/main/java/jota/dto/request/IotaGetTrytesRequest.java rename to jota/src/main/java/jota/dto/request/IotaGetTrytesRequest.java diff --git a/src/main/java/jota/dto/request/IotaNeighborsRequest.java b/jota/src/main/java/jota/dto/request/IotaNeighborsRequest.java similarity index 100% rename from src/main/java/jota/dto/request/IotaNeighborsRequest.java rename to jota/src/main/java/jota/dto/request/IotaNeighborsRequest.java diff --git a/src/main/java/jota/dto/request/IotaStoreTransactionsRequest.java b/jota/src/main/java/jota/dto/request/IotaStoreTransactionsRequest.java similarity index 100% rename from src/main/java/jota/dto/request/IotaStoreTransactionsRequest.java rename to jota/src/main/java/jota/dto/request/IotaStoreTransactionsRequest.java diff --git a/src/main/java/jota/dto/response/AbstractResponse.java b/jota/src/main/java/jota/dto/response/AbstractResponse.java similarity index 100% rename from src/main/java/jota/dto/response/AbstractResponse.java rename to jota/src/main/java/jota/dto/response/AbstractResponse.java diff --git a/src/main/java/jota/dto/response/AddNeighborsResponse.java b/jota/src/main/java/jota/dto/response/AddNeighborsResponse.java similarity index 100% rename from src/main/java/jota/dto/response/AddNeighborsResponse.java rename to jota/src/main/java/jota/dto/response/AddNeighborsResponse.java diff --git a/src/main/java/jota/dto/response/AnalyzeTransactionResponse.java b/jota/src/main/java/jota/dto/response/AnalyzeTransactionResponse.java similarity index 100% rename from src/main/java/jota/dto/response/AnalyzeTransactionResponse.java rename to jota/src/main/java/jota/dto/response/AnalyzeTransactionResponse.java diff --git a/src/main/java/jota/dto/response/BroadcastTransactionsResponse.java b/jota/src/main/java/jota/dto/response/BroadcastTransactionsResponse.java similarity index 100% rename from src/main/java/jota/dto/response/BroadcastTransactionsResponse.java rename to jota/src/main/java/jota/dto/response/BroadcastTransactionsResponse.java diff --git a/src/main/java/jota/dto/response/FindTransactionResponse.java b/jota/src/main/java/jota/dto/response/FindTransactionResponse.java similarity index 100% rename from src/main/java/jota/dto/response/FindTransactionResponse.java rename to jota/src/main/java/jota/dto/response/FindTransactionResponse.java diff --git a/src/main/java/jota/dto/response/GetAccountDataResponse.java b/jota/src/main/java/jota/dto/response/GetAccountDataResponse.java similarity index 100% rename from src/main/java/jota/dto/response/GetAccountDataResponse.java rename to jota/src/main/java/jota/dto/response/GetAccountDataResponse.java diff --git a/src/main/java/jota/dto/response/GetAttachToTangleResponse.java b/jota/src/main/java/jota/dto/response/GetAttachToTangleResponse.java similarity index 100% rename from src/main/java/jota/dto/response/GetAttachToTangleResponse.java rename to jota/src/main/java/jota/dto/response/GetAttachToTangleResponse.java diff --git a/src/main/java/jota/dto/response/GetBalancesAndFormatResponse.java b/jota/src/main/java/jota/dto/response/GetBalancesAndFormatResponse.java similarity index 100% rename from src/main/java/jota/dto/response/GetBalancesAndFormatResponse.java rename to jota/src/main/java/jota/dto/response/GetBalancesAndFormatResponse.java diff --git a/src/main/java/jota/dto/response/GetBalancesResponse.java b/jota/src/main/java/jota/dto/response/GetBalancesResponse.java similarity index 100% rename from src/main/java/jota/dto/response/GetBalancesResponse.java rename to jota/src/main/java/jota/dto/response/GetBalancesResponse.java diff --git a/src/main/java/jota/dto/response/GetBundleResponse.java b/jota/src/main/java/jota/dto/response/GetBundleResponse.java similarity index 100% rename from src/main/java/jota/dto/response/GetBundleResponse.java rename to jota/src/main/java/jota/dto/response/GetBundleResponse.java diff --git a/src/main/java/jota/dto/response/GetInclusionStateResponse.java b/jota/src/main/java/jota/dto/response/GetInclusionStateResponse.java similarity index 100% rename from src/main/java/jota/dto/response/GetInclusionStateResponse.java rename to jota/src/main/java/jota/dto/response/GetInclusionStateResponse.java diff --git a/src/main/java/jota/dto/response/GetNeighborsResponse.java b/jota/src/main/java/jota/dto/response/GetNeighborsResponse.java similarity index 100% rename from src/main/java/jota/dto/response/GetNeighborsResponse.java rename to jota/src/main/java/jota/dto/response/GetNeighborsResponse.java diff --git a/src/main/java/jota/dto/response/GetNewAddressResponse.java b/jota/src/main/java/jota/dto/response/GetNewAddressResponse.java similarity index 100% rename from src/main/java/jota/dto/response/GetNewAddressResponse.java rename to jota/src/main/java/jota/dto/response/GetNewAddressResponse.java diff --git a/src/main/java/jota/dto/response/GetNodeInfoResponse.java b/jota/src/main/java/jota/dto/response/GetNodeInfoResponse.java similarity index 100% rename from src/main/java/jota/dto/response/GetNodeInfoResponse.java rename to jota/src/main/java/jota/dto/response/GetNodeInfoResponse.java diff --git a/src/main/java/jota/dto/response/GetTipsResponse.java b/jota/src/main/java/jota/dto/response/GetTipsResponse.java similarity index 100% rename from src/main/java/jota/dto/response/GetTipsResponse.java rename to jota/src/main/java/jota/dto/response/GetTipsResponse.java diff --git a/src/main/java/jota/dto/response/GetTransactionsToApproveResponse.java b/jota/src/main/java/jota/dto/response/GetTransactionsToApproveResponse.java similarity index 100% rename from src/main/java/jota/dto/response/GetTransactionsToApproveResponse.java rename to jota/src/main/java/jota/dto/response/GetTransactionsToApproveResponse.java diff --git a/src/main/java/jota/dto/response/GetTransferResponse.java b/jota/src/main/java/jota/dto/response/GetTransferResponse.java similarity index 100% rename from src/main/java/jota/dto/response/GetTransferResponse.java rename to jota/src/main/java/jota/dto/response/GetTransferResponse.java diff --git a/src/main/java/jota/dto/response/GetTrytesResponse.java b/jota/src/main/java/jota/dto/response/GetTrytesResponse.java similarity index 100% rename from src/main/java/jota/dto/response/GetTrytesResponse.java rename to jota/src/main/java/jota/dto/response/GetTrytesResponse.java diff --git a/src/main/java/jota/dto/response/InterruptAttachingToTangleResponse.java b/jota/src/main/java/jota/dto/response/InterruptAttachingToTangleResponse.java similarity index 100% rename from src/main/java/jota/dto/response/InterruptAttachingToTangleResponse.java rename to jota/src/main/java/jota/dto/response/InterruptAttachingToTangleResponse.java diff --git a/src/main/java/jota/dto/response/RemoveNeighborsResponse.java b/jota/src/main/java/jota/dto/response/RemoveNeighborsResponse.java similarity index 100% rename from src/main/java/jota/dto/response/RemoveNeighborsResponse.java rename to jota/src/main/java/jota/dto/response/RemoveNeighborsResponse.java diff --git a/src/main/java/jota/dto/response/ReplayBundleResponse.java b/jota/src/main/java/jota/dto/response/ReplayBundleResponse.java similarity index 100% rename from src/main/java/jota/dto/response/ReplayBundleResponse.java rename to jota/src/main/java/jota/dto/response/ReplayBundleResponse.java diff --git a/src/main/java/jota/dto/response/SendTransferResponse.java b/jota/src/main/java/jota/dto/response/SendTransferResponse.java similarity index 100% rename from src/main/java/jota/dto/response/SendTransferResponse.java rename to jota/src/main/java/jota/dto/response/SendTransferResponse.java diff --git a/src/main/java/jota/dto/response/StoreTransactionsResponse.java b/jota/src/main/java/jota/dto/response/StoreTransactionsResponse.java similarity index 100% rename from src/main/java/jota/dto/response/StoreTransactionsResponse.java rename to jota/src/main/java/jota/dto/response/StoreTransactionsResponse.java diff --git a/src/main/java/jota/error/ArgumentException.java b/jota/src/main/java/jota/error/ArgumentException.java similarity index 100% rename from src/main/java/jota/error/ArgumentException.java rename to jota/src/main/java/jota/error/ArgumentException.java diff --git a/src/main/java/jota/error/BaseException.java b/jota/src/main/java/jota/error/BaseException.java similarity index 100% rename from src/main/java/jota/error/BaseException.java rename to jota/src/main/java/jota/error/BaseException.java diff --git a/src/main/java/jota/error/BroadcastAndStoreException.java b/jota/src/main/java/jota/error/BroadcastAndStoreException.java similarity index 100% rename from src/main/java/jota/error/BroadcastAndStoreException.java rename to jota/src/main/java/jota/error/BroadcastAndStoreException.java diff --git a/src/main/java/jota/error/InvalidAddressException.java b/jota/src/main/java/jota/error/InvalidAddressException.java similarity index 100% rename from src/main/java/jota/error/InvalidAddressException.java rename to jota/src/main/java/jota/error/InvalidAddressException.java diff --git a/src/main/java/jota/error/InvalidApiVersionException.java b/jota/src/main/java/jota/error/InvalidApiVersionException.java similarity index 100% rename from src/main/java/jota/error/InvalidApiVersionException.java rename to jota/src/main/java/jota/error/InvalidApiVersionException.java diff --git a/src/main/java/jota/error/InvalidBundleException.java b/jota/src/main/java/jota/error/InvalidBundleException.java similarity index 100% rename from src/main/java/jota/error/InvalidBundleException.java rename to jota/src/main/java/jota/error/InvalidBundleException.java diff --git a/src/main/java/jota/error/InvalidSecurityLevelException.java b/jota/src/main/java/jota/error/InvalidSecurityLevelException.java similarity index 100% rename from src/main/java/jota/error/InvalidSecurityLevelException.java rename to jota/src/main/java/jota/error/InvalidSecurityLevelException.java diff --git a/src/main/java/jota/error/InvalidSignatureException.java b/jota/src/main/java/jota/error/InvalidSignatureException.java similarity index 100% rename from src/main/java/jota/error/InvalidSignatureException.java rename to jota/src/main/java/jota/error/InvalidSignatureException.java diff --git a/src/main/java/jota/error/InvalidTransferException.java b/jota/src/main/java/jota/error/InvalidTransferException.java similarity index 100% rename from src/main/java/jota/error/InvalidTransferException.java rename to jota/src/main/java/jota/error/InvalidTransferException.java diff --git a/src/main/java/jota/error/InvalidTrytesException.java b/jota/src/main/java/jota/error/InvalidTrytesException.java similarity index 100% rename from src/main/java/jota/error/InvalidTrytesException.java rename to jota/src/main/java/jota/error/InvalidTrytesException.java diff --git a/src/main/java/jota/error/NoInclusionStatesException.java b/jota/src/main/java/jota/error/NoInclusionStatesException.java similarity index 100% rename from src/main/java/jota/error/NoInclusionStatesException.java rename to jota/src/main/java/jota/error/NoInclusionStatesException.java diff --git a/src/main/java/jota/error/NoNodeInfoException.java b/jota/src/main/java/jota/error/NoNodeInfoException.java similarity index 100% rename from src/main/java/jota/error/NoNodeInfoException.java rename to jota/src/main/java/jota/error/NoNodeInfoException.java diff --git a/src/main/java/jota/error/NotEnoughBalanceException.java b/jota/src/main/java/jota/error/NotEnoughBalanceException.java similarity index 100% rename from src/main/java/jota/error/NotEnoughBalanceException.java rename to jota/src/main/java/jota/error/NotEnoughBalanceException.java diff --git a/src/main/java/jota/model/Bundle.java b/jota/src/main/java/jota/model/Bundle.java similarity index 100% rename from src/main/java/jota/model/Bundle.java rename to jota/src/main/java/jota/model/Bundle.java diff --git a/src/main/java/jota/model/Input.java b/jota/src/main/java/jota/model/Input.java similarity index 100% rename from src/main/java/jota/model/Input.java rename to jota/src/main/java/jota/model/Input.java diff --git a/src/main/java/jota/model/Inputs.java b/jota/src/main/java/jota/model/Inputs.java similarity index 100% rename from src/main/java/jota/model/Inputs.java rename to jota/src/main/java/jota/model/Inputs.java diff --git a/src/main/java/jota/model/Neighbor.java b/jota/src/main/java/jota/model/Neighbor.java similarity index 100% rename from src/main/java/jota/model/Neighbor.java rename to jota/src/main/java/jota/model/Neighbor.java diff --git a/src/main/java/jota/model/Signature.java b/jota/src/main/java/jota/model/Signature.java similarity index 100% rename from src/main/java/jota/model/Signature.java rename to jota/src/main/java/jota/model/Signature.java diff --git a/src/main/java/jota/model/Transaction.java b/jota/src/main/java/jota/model/Transaction.java similarity index 100% rename from src/main/java/jota/model/Transaction.java rename to jota/src/main/java/jota/model/Transaction.java diff --git a/src/main/java/jota/model/Transfer.java b/jota/src/main/java/jota/model/Transfer.java similarity index 100% rename from src/main/java/jota/model/Transfer.java rename to jota/src/main/java/jota/model/Transfer.java diff --git a/src/main/java/jota/pow/ICurl.java b/jota/src/main/java/jota/pow/ICurl.java similarity index 100% rename from src/main/java/jota/pow/ICurl.java rename to jota/src/main/java/jota/pow/ICurl.java diff --git a/src/main/java/jota/pow/JCurl.java b/jota/src/main/java/jota/pow/JCurl.java similarity index 100% rename from src/main/java/jota/pow/JCurl.java rename to jota/src/main/java/jota/pow/JCurl.java diff --git a/src/main/java/jota/pow/Kerl.java b/jota/src/main/java/jota/pow/Kerl.java similarity index 100% rename from src/main/java/jota/pow/Kerl.java rename to jota/src/main/java/jota/pow/Kerl.java diff --git a/src/main/java/jota/pow/SpongeFactory.java b/jota/src/main/java/jota/pow/SpongeFactory.java similarity index 100% rename from src/main/java/jota/pow/SpongeFactory.java rename to jota/src/main/java/jota/pow/SpongeFactory.java diff --git a/src/main/java/jota/utils/Checksum.java b/jota/src/main/java/jota/utils/Checksum.java similarity index 100% rename from src/main/java/jota/utils/Checksum.java rename to jota/src/main/java/jota/utils/Checksum.java diff --git a/src/main/java/jota/utils/Constants.java b/jota/src/main/java/jota/utils/Constants.java similarity index 100% rename from src/main/java/jota/utils/Constants.java rename to jota/src/main/java/jota/utils/Constants.java diff --git a/src/main/java/jota/utils/Converter.java b/jota/src/main/java/jota/utils/Converter.java similarity index 100% rename from src/main/java/jota/utils/Converter.java rename to jota/src/main/java/jota/utils/Converter.java diff --git a/src/main/java/jota/utils/InputValidator.java b/jota/src/main/java/jota/utils/InputValidator.java similarity index 100% rename from src/main/java/jota/utils/InputValidator.java rename to jota/src/main/java/jota/utils/InputValidator.java diff --git a/src/main/java/jota/utils/IotaAPIUtils.java b/jota/src/main/java/jota/utils/IotaAPIUtils.java similarity index 100% rename from src/main/java/jota/utils/IotaAPIUtils.java rename to jota/src/main/java/jota/utils/IotaAPIUtils.java diff --git a/src/main/java/jota/utils/IotaUnitConverter.java b/jota/src/main/java/jota/utils/IotaUnitConverter.java similarity index 100% rename from src/main/java/jota/utils/IotaUnitConverter.java rename to jota/src/main/java/jota/utils/IotaUnitConverter.java diff --git a/src/main/java/jota/utils/IotaUnits.java b/jota/src/main/java/jota/utils/IotaUnits.java similarity index 100% rename from src/main/java/jota/utils/IotaUnits.java rename to jota/src/main/java/jota/utils/IotaUnits.java diff --git a/src/main/java/jota/utils/Multisig.java b/jota/src/main/java/jota/utils/Multisig.java similarity index 100% rename from src/main/java/jota/utils/Multisig.java rename to jota/src/main/java/jota/utils/Multisig.java diff --git a/src/main/java/jota/utils/NamedThreadFactory.java b/jota/src/main/java/jota/utils/NamedThreadFactory.java similarity index 100% rename from src/main/java/jota/utils/NamedThreadFactory.java rename to jota/src/main/java/jota/utils/NamedThreadFactory.java diff --git a/src/main/java/jota/utils/Pair.java b/jota/src/main/java/jota/utils/Pair.java similarity index 100% rename from src/main/java/jota/utils/Pair.java rename to jota/src/main/java/jota/utils/Pair.java diff --git a/src/main/java/jota/utils/Parallel.java b/jota/src/main/java/jota/utils/Parallel.java similarity index 100% rename from src/main/java/jota/utils/Parallel.java rename to jota/src/main/java/jota/utils/Parallel.java diff --git a/src/main/java/jota/utils/SeedRandomGenerator.java b/jota/src/main/java/jota/utils/SeedRandomGenerator.java similarity index 100% rename from src/main/java/jota/utils/SeedRandomGenerator.java rename to jota/src/main/java/jota/utils/SeedRandomGenerator.java diff --git a/src/main/java/jota/utils/Signing.java b/jota/src/main/java/jota/utils/Signing.java similarity index 100% rename from src/main/java/jota/utils/Signing.java rename to jota/src/main/java/jota/utils/Signing.java diff --git a/src/main/java/jota/utils/StopWatch.java b/jota/src/main/java/jota/utils/StopWatch.java similarity index 100% rename from src/main/java/jota/utils/StopWatch.java rename to jota/src/main/java/jota/utils/StopWatch.java diff --git a/src/main/java/jota/utils/TrytesConverter.java b/jota/src/main/java/jota/utils/TrytesConverter.java similarity index 100% rename from src/main/java/jota/utils/TrytesConverter.java rename to jota/src/main/java/jota/utils/TrytesConverter.java diff --git a/src/test/java/jota/ChecksumTest.java b/jota/src/test/java/jota/ChecksumTest.java similarity index 100% rename from src/test/java/jota/ChecksumTest.java rename to jota/src/test/java/jota/ChecksumTest.java diff --git a/src/test/java/jota/InputValidatorTest.java b/jota/src/test/java/jota/InputValidatorTest.java similarity index 100% rename from src/test/java/jota/InputValidatorTest.java rename to jota/src/test/java/jota/InputValidatorTest.java diff --git a/src/test/java/jota/IotaAPITest.java b/jota/src/test/java/jota/IotaAPITest.java similarity index 100% rename from src/test/java/jota/IotaAPITest.java rename to jota/src/test/java/jota/IotaAPITest.java diff --git a/src/test/java/jota/IotaCoreApiTest.java b/jota/src/test/java/jota/IotaCoreApiTest.java similarity index 100% rename from src/test/java/jota/IotaCoreApiTest.java rename to jota/src/test/java/jota/IotaCoreApiTest.java diff --git a/src/test/java/jota/IotaLocalPoWTest.java b/jota/src/test/java/jota/IotaLocalPoWTest.java similarity index 100% rename from src/test/java/jota/IotaLocalPoWTest.java rename to jota/src/test/java/jota/IotaLocalPoWTest.java diff --git a/src/test/java/jota/IotaMultisigTest.java b/jota/src/test/java/jota/IotaMultisigTest.java similarity index 100% rename from src/test/java/jota/IotaMultisigTest.java rename to jota/src/test/java/jota/IotaMultisigTest.java diff --git a/src/test/java/jota/IotaUnitConverterTest.java b/jota/src/test/java/jota/IotaUnitConverterTest.java similarity index 100% rename from src/test/java/jota/IotaUnitConverterTest.java rename to jota/src/test/java/jota/IotaUnitConverterTest.java diff --git a/src/test/java/jota/SeedRandomGeneratorTest.java b/jota/src/test/java/jota/SeedRandomGeneratorTest.java similarity index 100% rename from src/test/java/jota/SeedRandomGeneratorTest.java rename to jota/src/test/java/jota/SeedRandomGeneratorTest.java diff --git a/src/test/java/jota/SendMessageTest.java b/jota/src/test/java/jota/SendMessageTest.java similarity index 100% rename from src/test/java/jota/SendMessageTest.java rename to jota/src/test/java/jota/SendMessageTest.java diff --git a/src/test/java/jota/SigningTest.java b/jota/src/test/java/jota/SigningTest.java similarity index 100% rename from src/test/java/jota/SigningTest.java rename to jota/src/test/java/jota/SigningTest.java diff --git a/src/test/java/jota/TrytesConverterTest.java b/jota/src/test/java/jota/TrytesConverterTest.java similarity index 100% rename from src/test/java/jota/TrytesConverterTest.java rename to jota/src/test/java/jota/TrytesConverterTest.java diff --git a/mvnw b/mvnw new file mode 100755 index 0000000..6ecc150 --- /dev/null +++ b/mvnw @@ -0,0 +1,236 @@ +#!/bin/sh +# ---------------------------------------------------------------------------- +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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. +# ---------------------------------------------------------------------------- + +# ---------------------------------------------------------------------------- +# Maven2 Start Up Batch script +# +# Required ENV vars: +# ------------------ +# JAVA_HOME - location of a JDK home dir +# +# Optional ENV vars +# ----------------- +# M2_HOME - location of maven2's installed home dir +# MAVEN_OPTS - parameters passed to the Java VM when running Maven +# e.g. to debug Maven itself, use +# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +# MAVEN_SKIP_RC - flag to disable loading of mavenrc files +# ---------------------------------------------------------------------------- + +if [ -z "$MAVEN_SKIP_RC" ] ; then + + if [ -f /etc/mavenrc ] ; then + . /etc/mavenrc + fi + + if [ -f "$HOME/.mavenrc" ] ; then + . "$HOME/.mavenrc" + fi + +fi + +# OS specific support. $var _must_ be set to either true or false. +cygwin=false; +darwin=false; +mingw=false +case "`uname`" in + CYGWIN*) cygwin=true ;; + MINGW*) mingw=true;; + Darwin*) darwin=true + # + # Look for the Apple JDKs first to preserve the existing behaviour, and then look + # for the new JDKs provided by Oracle. + # + if [ -z "$JAVA_HOME" ] && [ -L /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK ] ; then + # + # Apple JDKs + # + export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home + fi + + if [ -z "$JAVA_HOME" ] && [ -L /System/Library/Java/JavaVirtualMachines/CurrentJDK ] ; then + # + # Apple JDKs + # + export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home + fi + + if [ -z "$JAVA_HOME" ] && [ -L "/Library/Java/JavaVirtualMachines/CurrentJDK" ] ; then + # + # Oracle JDKs + # + export JAVA_HOME=/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home + fi + + if [ -z "$JAVA_HOME" ] && [ -x "/usr/libexec/java_home" ]; then + # + # Apple JDKs + # + export JAVA_HOME=`/usr/libexec/java_home` + fi + ;; +esac + +if [ -z "$JAVA_HOME" ] ; then + if [ -r /etc/gentoo-release ] ; then + JAVA_HOME=`java-config --jre-home` + fi +fi + +if [ -z "$M2_HOME" ] ; then + ## resolve links - $0 may be a link to maven's home + PRG="$0" + + # need this for relative symlinks + while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG="`dirname "$PRG"`/$link" + fi + done + + saveddir=`pwd` + + M2_HOME=`dirname "$PRG"`/.. + + # make it fully qualified + M2_HOME=`cd "$M2_HOME" && pwd` + + cd "$saveddir" + # echo Using m2 at $M2_HOME +fi + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --unix "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --unix "$CLASSPATH"` +fi + +# For Migwn, ensure paths are in UNIX format before anything is touched +if $mingw ; then + [ -n "$M2_HOME" ] && + M2_HOME="`(cd "$M2_HOME"; pwd)`" + [ -n "$JAVA_HOME" ] && + JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" + # TODO classpath? +fi + +if [ -z "$JAVA_HOME" ]; then + javaExecutable="`which javac`" + if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then + # readlink(1) is not available as standard on Solaris 10. + readLink=`which readlink` + if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then + if $darwin ; then + javaHome="`dirname \"$javaExecutable\"`" + javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" + else + javaExecutable="`readlink -f \"$javaExecutable\"`" + fi + javaHome="`dirname \"$javaExecutable\"`" + javaHome=`expr "$javaHome" : '\(.*\)/bin'` + JAVA_HOME="$javaHome" + export JAVA_HOME + fi + fi +fi + +if [ -z "$JAVACMD" ] ; then + if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + else + JAVACMD="`which java`" + fi +fi + +if [ ! -x "$JAVACMD" ] ; then + echo "Error: JAVA_HOME is not defined correctly." >&2 + echo " We cannot execute $JAVACMD" >&2 + exit 1 +fi + +if [ -z "$JAVA_HOME" ] ; then + echo "Warning: JAVA_HOME environment variable is not set." +fi + +CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher + +# traverses directory structure from process work directory to filesystem root +# first directory with .mvn subdirectory is considered project base directory +find_maven_basedir() { + local basedir=$(pwd) + local wdir=$(pwd) + while [ "$wdir" != '/' ] ; do + if [ -d "$wdir"/.mvn ] ; then + basedir=$wdir + break + fi + wdir=$(cd "$wdir/.."; pwd) + done + echo "${basedir}" +} + +# concatenates all lines of a file +concat_lines() { + if [ -f "$1" ]; then + echo "$(tr -s '\n' ' ' < "$1")" + fi +} + +export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-$(find_maven_basedir)} +MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" + +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --path --windows "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --windows "$CLASSPATH"` + [ -n "$MAVEN_PROJECTBASEDIR" ] && + MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` +fi + +# Provide a "standardized" way to retrieve the CLI args that will +# work with both Windows and non-Windows executions. +MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" +export MAVEN_CMD_LINE_ARGS + +WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +# avoid using MAVEN_CMD_LINE_ARGS below since that would loose parameter escaping in $@ +exec "$JAVACMD" \ + $MAVEN_OPTS \ + -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ + "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ + ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/mvnw.cmd b/mvnw.cmd new file mode 100644 index 0000000..8e2b745 --- /dev/null +++ b/mvnw.cmd @@ -0,0 +1,146 @@ +@REM ---------------------------------------------------------------------------- +@REM Licensed to the Apache Software Foundation (ASF) under one +@REM or more contributor license agreements. See the NOTICE file +@REM distributed with this work for additional information +@REM regarding copyright ownership. The ASF licenses this file +@REM to you under the Apache License, Version 2.0 (the +@REM "License"); you may not use this file except in compliance +@REM with the License. You may obtain a copy of the License at +@REM +@REM http://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, +@REM software distributed under the License is distributed on an +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +@REM KIND, either express or implied. See the License for the +@REM specific language governing permissions and limitations +@REM under the License. +@REM ---------------------------------------------------------------------------- + +@REM ---------------------------------------------------------------------------- +@REM Maven2 Start Up Batch script +@REM +@REM Required ENV vars: +@REM JAVA_HOME - location of a JDK home dir +@REM +@REM Optional ENV vars +@REM M2_HOME - location of maven2's installed home dir +@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands +@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending +@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven +@REM e.g. to debug Maven itself, use +@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files +@REM ---------------------------------------------------------------------------- + +@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' +@echo off +@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on' +@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% + +@REM set %HOME% to equivalent of $HOME +if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") + +@REM Execute a user defined script before this one +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre +@REM check for pre script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" +if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" +:skipRcPre + +@setlocal + +set ERROR_CODE=0 + +@REM To isolate internal variables from possible post scripts, we use another setlocal +@setlocal + +@REM ==== START VALIDATION ==== +if not "%JAVA_HOME%" == "" goto OkJHome + +echo. +echo Error: JAVA_HOME not found in your environment. >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +:OkJHome +if exist "%JAVA_HOME%\bin\java.exe" goto init + +echo. +echo Error: JAVA_HOME is set to an invalid directory. >&2 +echo JAVA_HOME = "%JAVA_HOME%" >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +@REM ==== END VALIDATION ==== + +:init + +set MAVEN_CMD_LINE_ARGS=%MAVEN_CONFIG% %* + +@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". +@REM Fallback to current working directory if not found. + +set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% +IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir + +set EXEC_DIR=%CD% +set WDIR=%EXEC_DIR% +:findBaseDir +IF EXIST "%WDIR%"\.mvn goto baseDirFound +cd .. +IF "%WDIR%"=="%CD%" goto baseDirNotFound +set WDIR=%CD% +goto findBaseDir + +:baseDirFound +set MAVEN_PROJECTBASEDIR=%WDIR% +cd "%EXEC_DIR%" +goto endDetectBaseDir + +:baseDirNotFound +set MAVEN_PROJECTBASEDIR=%EXEC_DIR% +cd "%EXEC_DIR%" + +:endDetectBaseDir + +IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig + +@setlocal EnableExtensions EnableDelayedExpansion +for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a +@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% + +:endReadAdditionalConfig + +SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" + +set WRAPPER_JAR=""%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"" +set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +# avoid using MAVEN_CMD_LINE_ARGS below since that would loose parameter escaping in %* +%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* +if ERRORLEVEL 1 goto error +goto end + +:error +set ERROR_CODE=1 + +:end +@endlocal & set ERROR_CODE=%ERROR_CODE% + +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost +@REM check for post script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" +if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" +:skipRcPost + +@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' +if "%MAVEN_BATCH_PAUSE%" == "on" pause + +if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% + +exit /B %ERROR_CODE% diff --git a/pom.xml b/pom.xml index b985174..91b1764 100644 --- a/pom.xml +++ b/pom.xml @@ -1,145 +1,137 @@ - - + + 4.0.0 + org.iota - jota + jota-parent 0.9.6-SNAPSHOT + pom JOTA JOTA library is a simple Java wrapper around IOTA Node's JSON-REST HTTP interface. + https://github.com/iotaledger/iota.lib.java - Apache License, Version 2.0 + The Apache Software License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0.txt repo + + + pinpong + Oliver Nitzschke + + + davassi + Gianluigi Davassi + + + adrianziser + + + heinrichreimer + Heinrich Reimer + + + jpkrohling + Juraci Paixão Kröhling + + + - 1.7 + 1.7 + 1.7 UTF-8 true + + + 2.5.3 + 3.0.1 + 2.10.4 - + + jota + - - - org.bouncycastle - bcprov-jdk15on - 1.57 - + + + + org.bouncycastle + bcprov-jdk15on + 1.58 + + + com.squareup.retrofit2 + retrofit + 2.3.0 + + + com.squareup.retrofit2 + converter-gson + 2.3.0 + + + org.apache.commons + commons-lang3 + 3.6 + + + org.slf4j + slf4j-api + 1.7.25 + + + commons-io + commons-io + 2.5 + - - - com.squareup.retrofit2 - retrofit - 2.3.0 - + + junit + junit + 4.12 + test + + + - - - com.squareup.retrofit2 - converter-gson - 2.3.0 - - - - - org.apache.commons - commons-lang3 - 3.6 - - - - - org.slf4j - slf4j-api - 1.7.25 - - - - - commons-io - commons-io - 2.5 - - - - junit - junit - 4.12 - test - - - + + + bintray + https://api.bintray.com/maven/iotaledger/maven/jota/;publish=1 + + + jfrog-snapshots + http://oss.jfrog.org/artifactory/oss-snapshot-local + + - org.apache.maven.plugins - maven-compiler-plugin - 3.3 + maven-release-plugin + ${version.maven-release-plugin} - ${java-version} - ${java-version} - ${java-version} - ${java-version} - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.12.4 - - ${skipTests} + false + release + true + @{project.version} - - build-extras - - - build - full - - - - ${env.GPG_KEYNAME} - ${env.GPG_PASSPHRASE} - + release - maven-assembly-plugin - - - - - - - - jar-with-dependencies - - - - - make-assembly - package - - single - - - - - - org.apache.maven.plugins maven-source-plugin + ${version.maven-source-plugin} attach-sources @@ -150,13 +142,10 @@ - org.apache.maven.plugins maven-javadoc-plugin - 2.10.4 + ${version.maven-javadoc-plugin} - private - true - -Xdoclint:none + false @@ -164,20 +153,7 @@ jar - - - - - org.apache.maven.plugins - maven-gpg-plugin - 1.6 - - - sign-artifacts package - - sign - diff --git a/teststore.txt b/teststore.txt deleted file mode 100644 index 833978f..0000000 --- a/teststore.txt +++ /dev/null @@ -1 +0,0 @@ -curl http://localhost:14265 -X POST -H Content-Type: application/json -d {'command': 'storeTransactions', 'trytes': ['GYPRVHBEZOOFXSHQBLCYW9ICTCISLHDBNMMVYD9JJHQMPQCTIQAQTJNNNJ9IDXLRCCOYOXYPCLR9PBEY9ORZIEPPDNTI9CQWYZUOTAVBXPSBOFEQAPFLWXSWUIUSJMSJIIIZWIKIRH9GCOEVZFKNXEVCUCIIWZQCQEUVRZOCMEL9AMGXJNMLJCIA9UWGRPPHCEOPTSVPKPPPCMQXYBHMSODTWUOABPKWFFFQJHCBVYXLHEWPD9YUDFTGNCYAKQKVEZYRBQRBXIAUX9SVEDUKGMTWQIYXRGSWYRK9SRONVGTW9YGHSZRIXWGPCCUCDRMAXBPDFVHSRYWHGB9DQSQFQKSNICGPIPTRZINYRXQAFSWSEWIFRMSBMGTNYPRWFSOIIWWT9IDSELM9JUOOWFNCCSHUSMGNROBFJX9JQ9XT9PKEGQYQAWAFPRVRRVQPUQBHLSNTEFCDKBWRCDX9EYOBB9KPMTLNNQLADBDLZPRVBCKVCYQEOLARJYAGTBFR9QLPKZBOYWZQOVKCVYRGYI9ZEFIQRKYXLJBZJDBJDJVQZCGYQMROVHNDBLGNLQODPUXFNTADDVYNZJUVPGB9LVPJIYLAPBOEHPMRWUIAJXVQOEM9ROEYUOTNLXVVQEYRQWDTQGDLEYFIYNDPRAIXOZEBCS9P99AZTQQLKEILEVXMSHBIDHLXKUOMMNFKPYHONKEYDCHMUNTTNRYVMMEYHPGASPZXASKRUPWQSHDMU9VPS99ZZ9SJJYFUJFFMFORBYDILBXCAVJDPDFHTTTIYOVGLRDYRTKHXJORJVYRPTDH9ZCPZ9ZADXZFRSFPIQKWLBRNTWJHXTOAUOL9FVGTUMMPYGYICJDXMOESEVDJWLMCVTJLPIEKBE9JTHDQWV9MRMEWFLPWGJFLUXI9BXPSVWCMUWLZSEWHBDZKXOLYNOZAPOYLQVZAQMOHGTTQEUAOVKVRRGAHNGPUEKHFVPVCOYSJAWHZU9DRROHBETBAFTATVAUGOEGCAYUXACLSSHHVYDHMDGJP9AUCLWLNTFEVGQGHQXSKEMVOVSKQEEWHWZUDTYOBGCURRZSJZLFVQQAAYQO9TRLFFN9HTDQXBSPPJYXMNGLLBHOMNVXNOWEIDMJVCLLDFHBDONQJCJVLBLCSMDOUQCKKCQJMGTSTHBXPXAMLMSXRIPUBMBAWBFNLHLUJTRJLDERLZFUBUSMF999XNHLEEXEENQJNOFFPNPQ9PQICHSATPLZVMVIWLRTKYPIXNFGYWOJSQDAXGFHKZPFLPXQEHCYEAGTIWIJEZTAVLNUMAFWGGLXMBNUQTOFCNLJTCDMWVVZGVBSEBCPFSM99FLOIDTCLUGPSEDLOKZUAEVBLWNMODGZBWOVQT9DPFOTSKRABQAVOQ9RXWBMAKFYNDCZOJGTCIDMQSQQSODKDXTPFLNOKSIZEOY9HFUTLQRXQMEPGOXQGLLPNSXAUCYPGZMNWMQWSWCKAQYKXJTWINSGPPZG9HLDLEAWUWEVCTVRCBDFOXKUROXH9HXXAXVPEJFRSLOGRVGYZASTEBAQNXJJROCYRTDPYFUIQJVDHAKEG9YACV9HCPJUEUKOYFNWDXCCJBIFQKYOXGRDHVTHEQUMHO999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999RKWEEVD99A99999999A99999999NFDPEEZCWVYLKZGSLCQNOFUSENIXRHWWTZFBXMPSQHEDFWZULBZFEOMNLRNIDQKDNNIELAOXOVMYEI9PGTKORV9IKTJZQUBQAWTKBKZ9NEZHBFIMCLV9TTNJNQZUIJDFPTTCTKBJRHAITVSKUCUEMD9M9SQJ999999TKORV9IKTJZQUBQAWTKBKZ9NEZHBFIMCLV9TTNJNQZUIJDFPTTCTKBJRHAITVSKUCUEMD9M9SQJ999999999999999999999999999999999999999999999999999999999999999999999999999999999999999']}