2021-05-18 10:39:20 +07:00
|
|
|
import java.io.ByteArrayOutputStream
|
|
|
|
|
|
|
|
plugins {
|
2023-03-09 18:55:00 +07:00
|
|
|
id("org.springframework.boot")
|
|
|
|
id("io.spring.dependency-management")
|
|
|
|
kotlin("jvm")
|
|
|
|
kotlin("plugin.spring")
|
|
|
|
kotlin("plugin.jpa")
|
2021-05-18 10:39:20 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
springBoot {
|
2023-03-09 18:55:00 +07:00
|
|
|
buildInfo { }
|
2021-05-18 10:39:20 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-03-09 18:55:00 +07:00
|
|
|
// Spring Data JPA (Required for Database Layer)
|
|
|
|
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
|
|
|
|
implementation("org.springframework.boot:spring-boot-starter-data-redis")
|
|
|
|
implementation("org.springframework.boot:spring-boot-starter-validation")
|
2022-04-11 12:35:47 +07:00
|
|
|
|
2023-03-09 18:55:00 +07:00
|
|
|
// Migrating from SpringDoc API (Swagger) for Support Spring Boot 3.x
|
|
|
|
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2")
|
2021-05-18 10:39:20 +07:00
|
|
|
|
2023-03-09 18:55:00 +07:00
|
|
|
// SPRING FRAMEWORK AND CORE
|
|
|
|
implementation("org.springframework.boot:spring-boot-starter-web")
|
|
|
|
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
|
2021-05-18 10:39:20 +07:00
|
|
|
|
2023-03-09 18:55:00 +07:00
|
|
|
// Development Runtime
|
|
|
|
developmentOnly("org.springframework.boot:spring-boot-devtools")
|
2021-05-18 10:39:20 +07:00
|
|
|
|
2023-03-09 18:55:00 +07:00
|
|
|
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
|
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
|
2022-04-11 12:35:47 +07:00
|
|
|
|
2023-03-09 18:55:00 +07:00
|
|
|
runtimeOnly("com.h2database:h2")
|
|
|
|
// runtimeOnly("org.postgresql:postgresql")
|
2022-04-11 12:35:47 +07:00
|
|
|
|
2023-03-09 18:55:00 +07:00
|
|
|
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
2021-05-18 10:39:20 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<Test> {
|
2023-03-09 18:55:00 +07:00
|
|
|
useJUnitPlatform()
|
2021-05-18 10:39:20 +07:00
|
|
|
}
|
2023-03-09 18:32:09 +07:00
|
|
|
|
|
|
|
tasks.withType<org.springframework.boot.gradle.tasks.bundling.BootJar> {
|
2023-03-09 18:55:00 +07:00
|
|
|
archiveFileName.set("api.jar")
|
2023-03-09 18:32:09 +07:00
|
|
|
}
|