-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
71 lines (60 loc) · 2.23 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.9.21"
id("java-library")
id("java-test-fixtures")
id("io.spring.dependency-management") version "1.1.4"
kotlin("plugin.spring") version "1.9.21" apply false
kotlin("plugin.jpa") version "1.9.21" apply false
id("org.springframework.boot") version "3.2.0" apply false
}
java.sourceCompatibility = JavaVersion.VERSION_21
val mockkVersion = "1.13.8"
val kotestVersion = "5.7.2"
val kotestSpringExtensionVersion = "1.1.3"
allprojects{
group = "dev.notypie"
version = "0.0.1-SNAPSHOT"
repositories {
mavenCentral()
}
tasks.withType<JavaCompile>{
sourceCompatibility = "21"
targetCompatibility = "21"
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions{
freeCompilerArgs += "-Xjsr305=strict"
jvmTarget = "21"
}
}
}
subprojects{
apply(plugin = "kotlin")
apply(plugin = "org.jetbrains.kotlin.jvm")
apply(plugin = "org.jetbrains.kotlin.plugin.spring")
apply(plugin = "org.springframework.boot")
apply(plugin = "io.spring.dependency-management")
apply(plugin = "java-library")
apply(plugin = "java-test-fixtures")
apply(plugin = "org.jetbrains.kotlin.plugin.jpa")
dependencies {
//Kotlin Reflection
implementation("org.jetbrains.kotlin:kotlin-reflect")
testFixturesImplementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
//Test implementation
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("io.projectreactor:reactor-test")
//Kotest + MockK
testImplementation("io.kotest:kotest-runner-junit5-jvm:${kotestVersion}")
testImplementation("io.kotest.extensions:kotest-extensions-spring:${kotestSpringExtensionVersion}")
testImplementation("io.kotest:kotest-assertions-core-jvm:${kotestVersion}")
testImplementation("io.mockk:mockk:${mockkVersion}")
//Spring @MockkBean & @SpykBean implementation
testImplementation("com.ninja-squad:springmockk:4.0.2")
}
}