File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -2,5 +2,6 @@ FROM openjdk:11
2
2
WORKDIR /usr/modelix-model
3
3
EXPOSE 28101
4
4
COPY run-model-server.sh /usr/modelix-model/
5
- COPY build/libs/model-server-latest-fatJar.jar /usr/modelix-model/model-server/build/libs/
5
+ COPY build/dependency-libs/ /usr/modelix-model/model-server/build/libs/
6
+ COPY build/libs/ /usr/modelix-model/model-server/build/libs/
6
7
CMD ["./run-model-server.sh" ]
Original file line number Diff line number Diff line change @@ -110,6 +110,15 @@ tasks.named("test") {
110
110
dependsOn(" cucumber" )
111
111
}
112
112
113
+ task(" copyLibs" , Sync ::class ) {
114
+ into(" $buildDir /dependency-libs" )
115
+ from(configurations.default)
116
+ }
117
+
118
+ tasks.named(" assemble" ) {
119
+ finalizedBy(" copyLibs" )
120
+ }
121
+
113
122
application {
114
123
mainClassName = " org.modelix.model.server.Main"
115
124
}
You can’t perform that action at this time.
0 commit comments