Skip to content
Permalink
Browse files

Do not include version in fatJar artifact name

  • Loading branch information...
JoeHegarty committed Oct 28, 2019
1 parent 626e9ba commit 03d941687e95a7c49dcdcc0d3ade23787d28fdde
Showing with 4 additions and 3 deletions.
  1. +0 −1 .github/scripts/docker_publish.sh
  2. +1 −1 docker/server/Dockerfile
  3. +3 −1 src/orbit-application/build.gradle.kts
@@ -2,6 +2,5 @@

docker login "$DOCKER_BASE_URL" -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"

cp "./src/orbit-application/build/libs/orbit-application-fat-${ORBIT_VERSION}.jar" ./src/orbit-application/build/libs/orbit-application-fat.jar
docker build -t "${DOCKER_REPO}/orbit:${ORBIT_VERSION}" -f docker/server/Dockerfile .
docker push "${DOCKER_REPO}/orbit:${ORBIT_VERSION}"
@@ -1,6 +1,6 @@
FROM azul/zulu-openjdk-alpine:11

ADD src/orbit-application/build/libs/orbit-application-fat-2-SNAPSHOT.jar /opt/orbit/libs/orbit-application-fat.jar
ADD src/orbit-application/build/libs/orbit-application-fat.jar /opt/orbit/libs/orbit-application-fat.jar
ADD docker/server/entrypoint.sh /opt/orbit/

RUN ["chmod", "+x", "/opt/orbit/entrypoint.sh"]
@@ -27,7 +27,9 @@ application {
}

val fatJar = task("fatJar", type = Jar::class) {
archiveBaseName.set("${project.name}-fat")
archiveClassifier.set("fat")
archiveVersion.set("")

manifest {
attributes["Implementation-Version"] = project.version
attributes["Main-Class"] = mainClass

0 comments on commit 03d9416

Please sign in to comment.
You can’t perform that action at this time.