Skip to content

Commit

Permalink
Merge branch 'master' into feature/logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaddoll authored Nov 5, 2024
2 parents 300a049 + 26d90e1 commit 9d720a3
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitigmore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.dependencies
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This doc is intended for contributors to `cadence-java-client` (hopefully that's
## Development Environment

* Java 11 (currently, we use Java 11 to compile Java 8 code).
* Thrift 0.9.3 (use [homebrew](https://formulae.brew.sh/formula/[email protected]) or [distribution](https://downloads.apache.org/thrift/0.9.3/))
* Thrift 0.9.3 (use [homebrew](https://formulae.brew.sh/formula/[email protected]) or [distribution](https://downloads.apache.org/thrift/0.9.3/)). Alternatively you can install with `scripts/install-thrift-locally-osx.sh`.
* Gradle build tool [6.x](https://github.com/uber/cadence-java-client/blob/master/gradle/wrapper/gradle-wrapper.properties)
* Docker

Expand Down
39 changes: 39 additions & 0 deletions scripts/install-thrift-locally-osx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash -e

cd $(dirname $0)/..

if [[ ! -d .dependencies ]]; then
mkdir .dependencies
fi

cd .dependencies
rm -rf thrift
mkdir thrift
cd thrift

APACHE_THRIFT_VERSION=0.9.3

brew install bison

# macs have an old versiion of bison hanging around typically
# so override it by using the brew version in PATH
export PATH="/opt/homebrew/opt/bison/bin:$PATH"

wget https://archive.apache.org/dist/thrift/${APACHE_THRIFT_VERSION}/thrift-${APACHE_THRIFT_VERSION}.tar.gz && \

tar -xvf thrift-${APACHE_THRIFT_VERSION}.tar.gz
rm thrift-${APACHE_THRIFT_VERSION}.tar.gz
cd thrift-${APACHE_THRIFT_VERSION}/

./configure --enable-libs=no --enable-tests=no --enable-tutorial=no --with-cpp=no --with-c_glib=no --with-java=yes --with-ruby=no --with-erlang=no --with-go=no --with-nodejs=no --with-python=no && \

make
echo ""
echo "thrift expects to be globally installed :/"
echo "asking do do with sudo to install to /usr/local/bin"
echo ""
sudo make install && \
cd .. && \
rm -rf thrift-${APACHE_THRIFT_VERSION}
thrift --version
echo "done"

0 comments on commit 9d720a3

Please sign in to comment.