This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
84 lines (70 loc) · 2.3 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import org.gradle.api.JavaVersion.VERSION_17
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
// Gradle 루트 프로젝트 설정
// 하위 어플리케이션을 전역적으로 관리하기 위한 설정
plugins {
// Kotlin plugin
kotlin("jvm") version "1.7.10"
kotlin("kapt") version "1.7.10"
kotlin("plugin.spring") version "1.7.10"
kotlin("plugin.jpa") version "1.7.10"
// Spring boot plugin
id("org.springframework.boot") version "2.7.2"
id("io.spring.dependency-management") version "1.0.12.RELEASE"
}
group = "packagename"
version = "0.0.0"
repositories {
mavenCentral()
}
dependencies {
// Kotlin
implementation(kotlin("stdlib-jdk8"))
implementation(kotlin("reflect"))
// Spring boot
developmentOnly("org.springframework.boot:spring-boot-devtools")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
kapt("org.springframework.boot:spring-boot-configuration-processor")
implementation("org.springframework.boot:spring-boot-starter-validation")
implementation("org.springframework.boot:spring-boot-starter-security")
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-web")
implementation("me.paulschwarz:spring-dotenv:2.5.4")
testImplementation("org.springframework.boot:spring-boot-starter-test")
// Jackson
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
// Jwt 구현체
implementation("com.auth0:java-jwt:3.19.2")
// JDBC 드라이버 및 데이터베이스 도구
implementation("org.liquibase:liquibase-core")
runtimeOnly("org.postgresql:postgresql") // JDBC Driver
}
// 자바 컴파일 설정
java {
sourceCompatibility = VERSION_17
targetCompatibility = VERSION_17
}
sourceSets {
main {
java.srcDir("api/main/kotlin")
resources.srcDir("api/main/resources")
}
test {
java.srcDir("api/test/kotlin")
resources.srcDir("api/test/resources")
}
}
tasks {
// 코틀린 컴파일 설정
withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "17"
freeCompilerArgs = listOf("-Xjsr305=strict") // `@NonNull` 어노테이션 호환
}
}
// 테스트 설정
withType<Test> {
useJUnitPlatform()
}
}