1
1
plugins {
2
- id ' java'
3
2
id ' org.springframework.boot' version ' 3.2.3'
4
3
id ' io.spring.dependency-management' version ' 1.1.4'
4
+ id ' org.jetbrains.kotlin.jvm' version ' 1.8.21'
5
+ id ' org.jetbrains.kotlin.plugin.spring' version ' 1.8.21'
6
+ id ' org.jetbrains.kotlin.kapt' version ' 1.8.21'
7
+ id ' org.jetbrains.kotlin.plugin.allopen' version ' 1.9.23'
5
8
}
6
9
7
10
group = ' com.wooteco'
8
11
version = ' 0.0.1-SNAPSHOT'
9
12
10
13
java {
11
- sourceCompatibility = ' 17'
12
- }
13
-
14
- configurations {
15
- compileOnly {
16
- extendsFrom annotationProcessor
17
- }
14
+ sourceCompatibility = JavaVersion . VERSION_17
18
15
}
19
16
20
17
repositories {
@@ -24,12 +21,30 @@ repositories {
24
21
dependencies {
25
22
implementation ' org.springframework.boot:spring-boot-starter-data-jpa'
26
23
implementation ' org.springframework.boot:spring-boot-starter-web'
27
- // JWT 라이브러리. https://github.com/jwtk/jjwt
28
24
implementation ' io.jsonwebtoken:jjwt:0.12.5'
25
+
29
26
compileOnly ' org.projectlombok:lombok'
30
- runtimeOnly ' com.mysql:mysql-connector-j'
31
27
annotationProcessor ' org.projectlombok:lombok'
28
+
29
+ runtimeOnly ' com.mysql:mysql-connector-j'
30
+ runtimeOnly " com.h2database:h2"
32
31
testImplementation ' org.springframework.boot:spring-boot-starter-test'
32
+ testImplementation ' io.kotest:kotest-runner-junit5:5.8.1'
33
+ testImplementation ' io.kotest.extensions:kotest-extensions-spring:1.3.0'
34
+
35
+ implementation " org.jetbrains.kotlin:kotlin-reflect"
36
+ implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk8"
37
+ }
38
+
39
+ kapt {
40
+ keepJavacAnnotationProcessors = true
41
+ }
42
+
43
+ tasks. withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile ). configureEach {
44
+ kotlinOptions {
45
+ freeCompilerArgs = [' -Xjsr305=strict' ]
46
+ jvmTarget = ' 17'
47
+ }
33
48
}
34
49
35
50
tasks. named(' test' ) {
0 commit comments