File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
src/main/kotlin/org/modelix/model/server Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -4,4 +4,5 @@ EXPOSE 28101
4
4
COPY run-model-server.sh /usr/modelix-model/
5
5
COPY build/dependency-libs/ /usr/modelix-model/model-server/build/libs/
6
6
COPY build/libs/ /usr/modelix-model/model-server/build/libs/
7
+ COPY api/*.yaml /usr/modelix-model/api/
7
8
ENTRYPOINT ["./run-model-server.sh" ]
Original file line number Diff line number Diff line change @@ -117,8 +117,15 @@ val cucumber = task("cucumber") {
117
117
}
118
118
}
119
119
120
+ tasks.register<Copy >(" copyApis" ) {
121
+ from(" ../api/" )
122
+ include(" *.yaml" )
123
+ into(project.layout.projectDirectory.dir(" api" ))
124
+ }
125
+
120
126
tasks.named(" build" ) {
121
127
dependsOn(" cucumber" )
128
+ dependsOn(" copyApis" )
122
129
}
123
130
124
131
task(" copyLibs" , Sync ::class ) {
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ object Main {
239
239
}
240
240
} else {
241
241
// we only serve the public API to the outside via swagger UI
242
- swaggerUI(path = " swagger" , swaggerFile = " ../ api/model-server.yaml" )
242
+ swaggerUI(path = " swagger" , swaggerFile = " api/model-server.yaml" )
243
243
}
244
244
}
245
245
}
You can’t perform that action at this time.
0 commit comments