Skip to content

Commit e6ecd36

Browse files
author
Kamil Sulejewski
committed
fix: Changed project name in jar file. Added depends.
1 parent 445170f commit e6ecd36

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM openjdk:17-jdk
22

3-
WORKDIR /gen
3+
WORKDIR /commit-craft
44

5-
COPY build/libs/gen-0.0.1-SNAPSHOT.jar gen-0.0.1-SNAPSHOT.jar
5+
COPY build/libs/commit-craft-0.0.1-SNAPSHOT.jar commit-craft-0.0.1-SNAPSHOT.jar
66

7-
ENTRYPOINT ["java", "-jar", "gen-0.0.1-SNAPSHOT.jar", "--spring.profiles.active=dev"]
7+
ENTRYPOINT ["java", "-jar", "commit-craft-0.0.1-SNAPSHOT.jar", "--spring.profiles.active=dev"]

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ java {
1616

1717
jar {
1818
manifest {
19-
attributes 'CommitGenApplication-Class': 'pl.commit.gen.CommitGenApplication'
19+
attributes 'CommitGenApplication-Class': 'pl.commit.craft.CommitGenApplication'
2020
}
2121
}
2222

@@ -74,6 +74,7 @@ dependencies {
7474
implementation 'org.hibernate.validator:hibernate-validator:8.0.1.Final'
7575
implementation 'org.glassfish:jakarta.el:4.0.2'
7676
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.4'
77+
implementation 'org.springdoc:springdoc-openapi-starter-common:2.8.4'
7778
implementation 'org.springdoc:springdoc-openapi-ui:1.8.0'
7879
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.2'
7980
testImplementation 'org.mockito:mockito-core:4.5.1'

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
set -e
44

5-
echo "Building gen-commiting project..."
5+
echo "Building commmit-craft project..."
66
./gradlew clean build
77

88
echo "Building the Docker image..."
9-
docker build -t gen-commiting .
9+
docker build -t commmit-craft .
1010

1111
echo "Running the Docker container..."
12-
docker run -d -p 8090:8090 --name gen-commiting gen-commiting
12+
docker run -d -p 8090:8090 --name commmit-craft commmit-craft

0 commit comments

Comments
 (0)