diff --git a/build.sh b/build.sh index cb4e94d..f1ed994 100755 --- a/build.sh +++ b/build.sh @@ -35,3 +35,18 @@ yarn prepare # Change version to latest # shellcheck disable=SC2001 npm version "$(echo "$FINSCHIA_VERSION" | sed 's/^v//')" + +echo "build java types" +cd ../java +# Generate .class and zip +./gradlew build --warning-mode all + +# # Write new version info to README.md +# cd .. +# table_end_line=$(grep -n -m 1 "\-\-\-\- | \-\-\-\-" README.md | cut -d ":" -f 1) +# content="| $FINSCHIA_VERSION | [$FINSCHIA_SDK_VERSION](https://github.com/Finschia/finschia-sdk/tree/$FINSCHIA_SDK_VERSION) | [$WASMD_VERSION](https://github.com/Finschia/wasmd/tree/$WASMD_VERSION) | [$IBC_GO_VERSION](https://github.com/Finschia/ibc-go/tree/$IBC_GO_VERSION) | [$FINSCHIA_VERSION](https://github.com/Finschia/finschia/tree/$FINSCHIA_VERSION) |" + +# # Insert the new row +# sed -i "$((table_end_line+1))i\\ +# $content +# " README.md