File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 99/out
1010dummy
1111$buildDir
12+ src /main /idls /*
Original file line number Diff line number Diff line change @@ -69,7 +69,19 @@ license {
6969 exclude ' com/uber/cadence/*.java' // generated code
7070}
7171
72+ task initDlsSubmodule (type : Exec ) {
73+ description = ' Initializes src/main/idls submodule'
74+ commandLine ' git' , ' submodule' , ' init'
75+ }
76+
77+ task updateDlsSubmodule (type : Exec ) {
78+ dependsOn initDlsSubmodule
79+ description = ' Updates src/main/idls submodule'
80+ commandLine ' git' , ' submodule' , ' update'
81+ }
82+
7283compileThrift {
84+ dependsOn updateDlsSubmodule
7385 sourceItems " src/main/idls/thrift/cadence.thrift" ," src/main/idls/thrift/shared.thrift"
7486
7587 nowarn true
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ ENV APACHE_THRIFT_VERSION=0.9.3
55
66# Install dependencies using apk
77RUN apk update && apk add --virtual wget ca-certificates wget && apk add --virtual build-dependencies build-base gcc
8+ # Git is needed in order to update the dls submodule
9+ RUN apk add --virtual git
810
911# Compile source
1012RUN set -ex ;\
You can’t perform that action at this time.
0 commit comments