-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.gradle.kts
76 lines (63 loc) · 2.22 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
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
plugins {
id("org.springframework.boot")
id("io.spring.dependency-management")
kotlin("jvm")
kotlin("kapt")
kotlin("plugin.spring")
kotlin("plugin.jpa")
id("org.jlleitschuh.gradle.ktlint")
}
group = "com.infcon"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_21
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
repositories {
mavenCentral()
}
allOpen {
annotation("jakarta.persistence.Entity")
annotation("jakarta.persistence.Embeddable")
annotation("jakarta.persistence.MappedSuperclass")
}
dependencies {
implementation(Dependencies.kotlinReflect)
implementation(Dependencies.jacksonKotlin)
implementation(Dependencies.springBootStarterWeb)
implementation(Dependencies.springBootStarterJpa)
implementation(Dependencies.springBootStarterActuator)
implementation(Dependencies.springBootStarterTest) {
exclude(module = "mockito-core")
}
developmentOnly(Dependencies.springBootDockerCompose)
kapt(Dependencies.springBootConfigurationProcessor)
implementation(Dependencies.springBootTestContainers)
implementation(Dependencies.springBootDevTools)
implementation(Dependencies.testContainersJunitJupiter)
implementation(Dependencies.testContainersMySql)
implementation(Dependencies.mySqlConnector)
runtimeOnly(Dependencies.h2db)
implementation(Dependencies.logging)
testImplementation(Dependencies.kotestCore)
testImplementation(Dependencies.kotestAssertions)
testImplementation(Dependencies.kotestExtensionsSpring)
testImplementation(Dependencies.kotestExtensionsTestContainers)
testImplementation(Dependencies.mockk)
testImplementation(Dependencies.springMockk)
testImplementation(Dependencies.fixtureMonkeyStarter)
testImplementation(Dependencies.fixtureMonkeyJackson)
}
tasks.named("compileKotlin", KotlinCompilationTask::class.java) {
compilerOptions {
freeCompilerArgs.add("-Xjsr305=strict")
apiVersion.set(KotlinVersion.KOTLIN_2_0)
}
}
tasks.withType<Test> {
useJUnitPlatform()
}