Skip to content

Commit 1fd51c5

Browse files
committed
fixed gradle warning in model-server
Execution optimizations have been disabled for task ':model-server:publishModelServerFatJarPublicationToItemisRepository' to ensure correctness due to the following reasons: - Gradle detected a problem with the following location: '/home/runner/work/modelix.core/modelix.core/model-server/build/libs/model-server-latest-fatJar.jar'. Reason: Task ':model-server:publishModelServerFatJarPublicationToItemisRepository' uses this output of task ':model-server:copyLibs' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
1 parent 177800b commit 1fd51c5

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

model-server/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ FROM openjdk:11
22
WORKDIR /usr/modelix-model
33
EXPOSE 28101
44
COPY run-model-server.sh /usr/modelix-model/
5-
COPY build/libs/ /usr/modelix-model/model-server/build/libs/
5+
COPY build/libs/model-server-latest-fatJar.jar /usr/modelix-model/model-server/build/libs/
66
CMD ["./run-model-server.sh"]

model-server/build.gradle.kts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,6 @@ tasks.named("test") {
110110
dependsOn("cucumber")
111111
}
112112

113-
task("copyLibs", Copy::class) {
114-
into("$buildDir/libs")
115-
from(configurations.default)
116-
}
117-
118-
tasks.named("assemble") {
119-
finalizedBy("copyLibs")
120-
}
121-
122113
application {
123114
mainClassName = "org.modelix.model.server.Main"
124115
}

0 commit comments

Comments
 (0)