Skip to content

Commit

Permalink
Fix/java sonatype (#287)
Browse files Browse the repository at this point in the history
* updated maven release and add_libs file

* removed accidental file

* added to other 2

* change version getting to jq
  • Loading branch information
Brord van Wierst authored Apr 19, 2023
1 parent 836c5a8 commit b4e66ee
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bindings-client-java-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ jobs:
shell: bash
working-directory: sdk/src/client/bindings/java/
run: |
./gradlew publishToSonatype
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
if [ "$RUNNER_OS" == "macOS" ];
then ./gradlew publishToSonatype -PbuildTarget=aarch64-apple-darwin
then ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -PbuildTarget=aarch64-apple-darwin
fi
4 changes: 2 additions & 2 deletions .github/workflows/bindings-wallet-java-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ jobs:
shell: bash
working-directory: sdk/src/wallet/bindings/java/
run: |
./gradlew publishToSonatype
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
if [ "$RUNNER_OS" == "macOS" ];
then ./gradlew publishToSonatype -PbuildTarget=aarch64-apple-darwin
then ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -PbuildTarget=aarch64-apple-darwin
fi
release-android:
Expand Down
9 changes: 6 additions & 3 deletions sdk/src/wallet/bindings/capacitorjs/add_libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
set -e
rm -rf tmp && mkdir tmp && cd tmp

echo Installing Java libraries
curl -SL --progress-bar --fail https://github.com/iotaledger/iota-sdk/releases/download/iota-wallet-java-1.0.0-rc.3/jniLibs.zip > iota-wallet-java.zip
# retrieve the latest version of org.iota.iota-wallet from Maven Central
latest_version=$(wget -qO- "https://search.maven.org/solrsearch/select?q=g:%22org.iota%22+AND+a:%22iota-wallet%22&core=gav&rows=1&wt=json" | jq ".response.docs[0].v" -r)

echo Installing Java libraries v$latest_version
curl -SL --progress-bar --fail https://github.com/iotaledger/iota-sdk/releases/download/iota-wallet-java-$latest_version/jniLibs.zip > iota-wallet-java.zip
unzip iota-wallet-java.zip
rm -rf ../android/src/main/jniLibs
cp -rv jniLibs ../android/src/main
curl -SL --progress-bar --fail https://github.com/iotaledger/iota-sdk/releases/download/iota-wallet-java-1.0.0-rc.3/iota-wallet-1.0.0-rc.3.jar > iota-wallet.jar
curl -SL --progress-bar --fail https://github.com/iotaledger/iota-sdk/releases/download/iota-wallet-java-$latest_version/iota-wallet-$latest_version.jar > iota-wallet.jar
rm -rf ../android/libs && mkdir -p ../android/libs
cp -rv iota-wallet.jar ../android/libs

Expand Down

0 comments on commit b4e66ee

Please sign in to comment.