-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
95 lines (84 loc) · 3.21 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
85
86
87
88
89
90
91
92
93
94
95
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "3.4.1"
id("io.spring.dependency-management") version "1.1.7"
kotlin("jvm") version "2.1.0"
kotlin("plugin.spring") version "2.1.0"
id("org.flywaydb.flyway") version "11.1.1"
}
group = "{{ group_name }}"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_21
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("org.springframework.boot:spring-boot-starter-jdbc")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.18.2")
implementation("io.projectreactor.kotlin:reactor-kotlin-extensions:1.2.3")
implementation("org.jetbrains.kotlin:kotlin-reflect:2.1.0")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.1.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:1.10.1")
implementation("io.arrow-kt:arrow-core:2.0.0")
implementation("com.zaxxer:HikariCP:6.2.1")
implementation("org.postgresql:postgresql:42.7.4")
implementation("org.flywaydb:flyway-core:11.1.1")
implementation("org.flywaydb:flyway-database-postgresql:11.1.1")
implementation(platform("org.apache.logging.log4j:log4j-bom:2.24.3"))
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude(module = "mockito-core")
exclude(group = "junit", module = "junit")
exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
}
testImplementation("io.projectreactor:reactor-test:3.7.1")
testImplementation("org.testcontainers:testcontainers:1.20.4")
testImplementation("org.testcontainers:junit-jupiter:1.20.4")
testImplementation("org.testcontainers:postgresql:1.20.4")
testImplementation("io.kotest:kotest-assertions-core-jvm:5.9.1")
testImplementation("io.kotest:kotest-assertions-json:5.9.1")
testImplementation("io.kotest:kotest-runner-junit5:5.9.1")
testImplementation("io.rest-assured:rest-assured:5.5.0")
testImplementation("io.rest-assured:json-path:5.5.0")
testImplementation("io.rest-assured:xml-path:5.5.0")
testImplementation("io.rest-assured:json-schema-validator:5.5.0")
testImplementation("io.mockk:mockk:1.13.16")
testImplementation("com.ninja-squad:springmockk:4.0.2")
testImplementation("com.tngtech.archunit:archunit:1.3.0")
}
buildscript {
dependencies {
classpath("org.flywaydb:flyway-database-postgresql:11.1.1")
}
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "21"
}
}
tasks {
withType<Test> {
useJUnitPlatform()
}
task<Test>("unitTest") {
useJUnitPlatform {
excludeTags("integration")
excludeTags("component")
}
shouldRunAfter(test)
}
task<Test>("integrationTest") {
description = "Runs integration tests."
useJUnitPlatform {
includeTags("integration")
}
shouldRunAfter(test)
}
task<Test>("componentTest") {
useJUnitPlatform {
includeTags("component")
}
shouldRunAfter(test)
}
}