spring-web-modules/api/build.gradle.kts

46 lines
1.4 KiB
Plaintext
Raw Normal View History

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")
}
springBoot {
2023-03-09 18:55:00 +07:00
buildInfo { }
}
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")
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")
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")
2023-03-09 18:55:00 +07:00
// Development Runtime
developmentOnly("org.springframework.boot:spring-boot-devtools")
2023-03-09 18:55:00 +07:00
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
2023-03-09 18:55:00 +07:00
runtimeOnly("com.h2database:h2")
// runtimeOnly("org.postgresql:postgresql")
2023-03-09 18:55:00 +07:00
testImplementation("org.springframework.boot:spring-boot-starter-test")
}
tasks.withType<Test> {
2023-03-09 18:55:00 +07:00
useJUnitPlatform()
}
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
}