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 9
9
/out
10
10
dummy
11
11
$buildDir
12
+ src /main /idls /*
Original file line number Diff line number Diff line change @@ -69,7 +69,19 @@ license {
69
69
exclude ' com/uber/cadence/*.java' // generated code
70
70
}
71
71
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
+
72
83
compileThrift {
84
+ dependsOn updateDlsSubmodule
73
85
sourceItems " src/main/idls/thrift/cadence.thrift" ," src/main/idls/thrift/shared.thrift"
74
86
75
87
nowarn true
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ ENV APACHE_THRIFT_VERSION=0.9.3
5
5
6
6
# Install dependencies using apk
7
7
RUN 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
8
10
9
11
# Compile source
10
12
RUN set -ex ;\
You can’t perform that action at this time.
0 commit comments