Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
back to 1.0.0-beta1 for lower version release not allowed test, chang… (
Browse files Browse the repository at this point in the history
#120)

* back to 1.0.0-beta1 for lower version release not allowed test, changed bintray repository id

* Javadoc gh-pages doesnt do anything if build fails

* removed release profile active by default, maybe that was the problem?
  • Loading branch information
kwek20 committed Sep 24, 2018
1 parent dbb88c8 commit d6a1eb6
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<password>${env.SONATYPE_PASSWORD}</password>
</server>
<server>
<id>bintray</id>
<id>bintray-iotaledger-maven</id>
<username>${env.BINTRAY_USER}</username>
<password>${env.BINTRAY_KEY}</password>
</server>
Expand Down
30 changes: 17 additions & 13 deletions .travis/push-jdoc-gh-pages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,24 @@ 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/jota/target/apidocs/" $HOME/javadoc-latest
if [ -d "/home/travis/build/iotaledger/iota.lib.java/jota/target/apidocs/" ]; then

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"
git config --global user.name "travis-ci"
git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/iotaledger/iota.lib.java.git gh-pages > /dev/null
cd $HOME
git config --global user.email "travis@travis-ci.org"
git config --global user.name "travis-ci"
git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/iotaledger/iota.lib.java.git gh-pages > /dev/null

cd gh-pages
git rm -rf ./javadoc
cp -Rf $HOME/javadoc-latest ./javadoc
git add -f .
git commit -m "Latest javadoc on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages"
git push -fq origin gh-pages > /dev/null

echo -e "Published Javadoc to gh-pages.\n"
cd gh-pages
git rm -rf ./javadoc
cp -Rf $HOME/javadoc-latest ./javadoc
git add -f .
git commit -m "Latest javadoc on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages"
git push -fq origin gh-pages > /dev/null

echo -e "Published Javadoc to gh-pages.\n"
else
echo -e "Javadoc build failed, not updating gh-pages.\n"
fi
fi
2 changes: 1 addition & 1 deletion jota/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.iota</groupId>
<artifactId>jota-parent</artifactId>
<version>0.9.11</version>
<version>1.0.0-beta1</version>
</parent>

<name>JOTA : Library</name>
Expand Down
8 changes: 3 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>org.iota</groupId>
<artifactId>jota-parent</artifactId>
<version>0.9.11</version>
<version>1.0.0-beta1</version>
<packaging>pom</packaging>
<name>JOTA</name>
<description>JOTA library is a simple Java wrapper around IOTA Node's JSON-REST HTTP interface.</description>
Expand Down Expand Up @@ -113,7 +113,8 @@

<distributionManagement>
<repository>
<id>bintray</id>
<id>bintray-iotaledger-maven</id>
<name>iotaledger-maven</name>
<url>https://api.bintray.com/maven/iotaledger/maven/jota/;publish=1</url>
</repository>
<snapshotRepository>
Expand Down Expand Up @@ -155,9 +156,6 @@
<profiles>
<profile>
<id>release</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
Expand Down

0 comments on commit d6a1eb6

Please sign in to comment.