File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ RUN chmod +x gradlew && \
1010 ./gradlew dependencies --no-daemon
1111
1212COPY src/ ./src/
13- RUN ./gradlew build -x test --no-daemon
13+ RUN ./gradlew assemble --no-daemon
1414
1515
1616# Runner stage
Original file line number Diff line number Diff line change @@ -75,18 +75,20 @@ task archiveServerMainJar(type: Jar) {
7575 }
7676}
7777
78- build. dependsOn(archiveServerMainJar)
79- build. doLast {
80- copy {
81- from war. archiveFile
82- from archiveServerMainJar. archiveFile
83- from configurations. providedCompile
84- into appDir
85- }
78+ task packageApp (type : Copy ) {
79+ dependsOn assemble
80+
81+ from war. archiveFile
82+ from archiveServerMainJar. archiveFile
83+ from configurations. providedCompile
84+ into appDir
8685}
8786
87+ assemble. dependsOn archiveServerMainJar
88+ assemble. finalizedBy packageApp
89+
8890task runApp (type : Exec ) {
89- dependsOn build
91+ dependsOn assemble
9092
9193 environment PORT : 8080
9294 workingDir appDir. get()
You can’t perform that action at this time.
0 commit comments