File tree Expand file tree Collapse file tree 3 files changed +1259
-171
lines changed Expand file tree Collapse file tree 3 files changed +1259
-171
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,43 @@ set -eu
55cd " ${BASH_SOURCE%/* } /.."
66
77TARGET=/build/target/generated-sources/thrift
8+ GRADLE_VERSION=8.4
9+ THRIFT_VERSION=$( mvn -q help:evaluate -Dexpression=libthrift.version -DforceStdout)
810
9- # use unstable for Thrift 0.19.0
10- docker run -v " ${PWD} :/build" --rm debian:unstable /bin/sh -c " \
11+ docker run -v " ${PWD} :/build" --rm debian:bookworm /bin/sh -c " \
1112set -eux
1213apt-get update -q
13- apt-get install -q -y thrift-compiler
14+ apt-get install -q -y \
15+ ant \
16+ automake\
17+ bison \
18+ flex \
19+ g++ \
20+ git \
21+ libboost-all-dev \
22+ libevent-dev \
23+ libssl-dev \
24+ libtool \
25+ make \
26+ openjdk-17-jdk-headless \
27+ pkg-config \
28+ unzip \
29+ wget
30+
31+ wget https://services.gradle.org/distributions/gradle-$GRADLE_VERSION -bin.zip -q \
32+ -O /tmp/gradle-$GRADLE_VERSION -bin.zip
33+ unzip -d /tmp /tmp/gradle-$GRADLE_VERSION -bin.zip
34+ mv /tmp/gradle-$GRADLE_VERSION /usr/local/gradle
35+ ln -s /usr/local/gradle/bin/gradle /usr/local/bin
36+
37+ wget 'https://dlcdn.apache.org/thrift/$THRIFT_VERSION /thrift-$THRIFT_VERSION .tar.gz'
38+ tar zxf thrift-$THRIFT_VERSION .tar.gz
39+ cd thrift-$THRIFT_VERSION
40+ ./bootstrap.sh
41+ ./configure --without-cpp --without-kotlin --without-python --without-py3
42+ make
43+ make install
44+
1445rm -rf $TARGET
1546mkdir -p $TARGET
1647thrift -o $TARGET \
Original file line number Diff line number Diff line change 2828 <air .check.skip-extended>true</air .check.skip-extended>
2929 <air .javadoc.lint>all,-missing</air .javadoc.lint>
3030 <project .build.targetJdk>17</project .build.targetJdk>
31+ <libthrift .version>0.21.0</libthrift .version>
3132 </properties >
3233
3334 <dependencies >
3435 <dependency >
3536 <groupId >org.apache.thrift</groupId >
3637 <artifactId >libthrift</artifactId >
37- <version >0.19.0 </version >
38+ <version >${libthrift.version} </version >
3839 </dependency >
3940
4041 <dependency >
You can’t perform that action at this time.
0 commit comments