generated from fraktalio/fmodel-spring-demo
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
77 lines (67 loc) · 2.94 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "3.3.2"
id("io.spring.dependency-management") version "1.1.6"
kotlin("jvm") version "2.0.10"
kotlin("plugin.spring") version "2.0.10"
kotlin("plugin.serialization") version "2.0.10"
}
group = "com.fraktalio.example"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_17
configurations {
all {
// We use Kotlin Serialization so no need for Jackson and kotlin-reflect
exclude(module = "spring-boot-starter-json")
}
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
repositories {
mavenCentral()
}
extra["testcontainersVersion"] = "1.20.1"
extra["fmodelVersion"] = "3.5.1"
extra["kotlinxSerializationJson"] = "1.7.1"
extra["kotlinxCollectionsImmutable"] = "0.3.7"
extra["kotlinLogging"] = "3.0.5"
extra["kotlinxCoroutinesTest"] = "1.8.1"
dependencies {
implementation("com.fraktalio.fmodel:domain:${property("fmodelVersion")}")
implementation("com.fraktalio.fmodel:application-vanilla:${property("fmodelVersion")}")
implementation("com.fraktalio.fmodel:application-arrow:${property("fmodelVersion")}")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.boot:spring-boot-starter-data-r2dbc")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("org.springframework.boot:spring-boot-starter-rsocket")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("io.projectreactor.kotlin:reactor-kotlin-extensions")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:${property("kotlinxSerializationJson")}")
implementation("org.jetbrains.kotlinx:kotlinx-collections-immutable-jvm:${property("kotlinxCollectionsImmutable")}")
implementation("org.postgresql:r2dbc-postgresql")
implementation("io.github.microutils:kotlin-logging-jvm:${property("kotlinLogging")}")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("io.projectreactor:reactor-test")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:${property("kotlinxCoroutinesTest")}")
testImplementation("org.testcontainers:junit-jupiter")
testImplementation("org.testcontainers:postgresql")
testImplementation("org.testcontainers:r2dbc")
testImplementation("io.projectreactor:reactor-test")
}
dependencyManagement {
imports {
mavenBom("org.testcontainers:testcontainers-bom:${property("testcontainersVersion")}")
}
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "17"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}