Skip to content

Commit 0d4e754

Browse files
committed
feat: added docker
Signed-off-by: Rajdeep Roy Chowdhury <rrajdeeproychowdhury@gmail.com>
1 parent bab8c23 commit 0d4e754

12 files changed

Lines changed: 319 additions & 507 deletions

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ build/
3131

3232
### VS Code ###
3333
.vscode/
34+
35+
.gradle

.mvn/wrapper/maven-wrapper.jar

-57.4 KB
Binary file not shown.

.mvn/wrapper/maven-wrapper.properties

Lines changed: 0 additions & 2 deletions
This file was deleted.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ RUN mkdir /src
44

55
WORKDIR /src
66
COPY . .
7-
RUN ./mvnw clean package
7+
RUN ./gradlew clean build
88

99
# ----------------------------------------------
1010

build.gradle.kts

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
plugins {
2+
id("org.springframework.boot") version "2.7.4"
3+
id("io.spring.dependency-management") version "1.1.6"
4+
kotlin("jvm") version "1.9.24" apply false // remove if not using Kotlin code
5+
id("java")
6+
}
7+
8+
group = "com.razdeep"
9+
version = "0.0.1-SNAPSHOT"
10+
description = "konsign-api"
11+
12+
java {
13+
toolchain {
14+
languageVersion.set(JavaLanguageVersion.of(17))
15+
}
16+
}
17+
18+
repositories {
19+
mavenCentral()
20+
}
21+
22+
dependencies {
23+
implementation("org.springframework.boot:spring-boot-starter-web")
24+
implementation("org.springframework.boot:spring-boot-starter-security")
25+
implementation("io.jsonwebtoken:jjwt:0.9.1")
26+
implementation("javax.xml.bind:jaxb-api:2.4.0-b180830.0359")
27+
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
28+
implementation("mysql:mysql-connector-java:8.0.30")
29+
implementation("com.google.code.gson:gson:2.10")
30+
31+
compileOnly("org.projectlombok:lombok")
32+
annotationProcessor("org.projectlombok:lombok")
33+
34+
implementation("org.mapstruct:mapstruct:1.5.3.Final")
35+
annotationProcessor("org.mapstruct:mapstruct-processor:1.5.3.Final")
36+
37+
implementation("org.springframework.boot:spring-boot-starter-actuator:3.0.1")
38+
implementation("org.springdoc:springdoc-openapi-ui:1.6.14")
39+
40+
implementation("org.springframework.boot:spring-boot-starter-data-redis:3.0.6")
41+
implementation("redis.clients:jedis:3.9.0")
42+
implementation("org.springframework.boot:spring-boot-starter-cache:2.4.3")
43+
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.0")
44+
45+
runtimeOnly("io.micrometer:micrometer-registry-prometheus")
46+
47+
testImplementation("org.springframework.boot:spring-boot-starter-test")
48+
testImplementation("org.testcontainers:testcontainers:1.17.6")
49+
testImplementation("org.testcontainers:mysql:1.17.6")
50+
}
51+
52+
tasks.test {
53+
useJUnitPlatform()
54+
}

gradle/wrapper/gradle-wrapper.jar

54.3 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStorePath=wrapper/dists
5+
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 172 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)