-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
77 lines (64 loc) · 1.99 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
plugins {
kotlin("jvm") version "1.9.25"
kotlin("plugin.spring") version "1.9.25"
id("io.fabric8.java-generator") version "7.0.1"
id("org.springframework.boot") version "3.4.0"
id("io.spring.dependency-management") version "1.1.6"
}
group = "no.fintlabs"
version = "0.0.1-SNAPSHOT"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
sourceSets {
main {
java {
srcDirs(layout.buildDirectory.dir("generated/source/kubernetes/main"))
}
}
}
repositories {
mavenLocal()
maven("https://repo.fintlabs.no/releases")
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("no.fintlabs:fint-core-consumer-state-library:1.3.0") {
exclude("org.springframework.boot", "spring-boot-starter-data-jpa")
}
implementation("no.fintlabs:fint-core-webhook:1.0.0")
implementation("io.fabric8:kubernetes-client:7.1.0")
implementation("io.fabric8:generator-annotations:7.1.0")
implementation("org.slf4j:slf4j-api:2.0.11")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("io.projectreactor.kotlin:reactor-kotlin-extensions")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")
testImplementation("junit:junit:4.13.2")
testImplementation("io.mockk:mockk:1.13.5")
testImplementation("io.fabric8:kubernetes-server-mock:7.1.0")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("io.projectreactor:reactor-test")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
kotlin {
compilerOptions {
freeCompilerArgs.addAll("-Xjsr305=strict")
}
}
tasks {
javaGen {
source = file(layout.projectDirectory.dir("src/main/resources/kubernetes"))
target = file(layout.buildDirectory.dir("generated/source/kubernetes/main"))
}
compileKotlin {
dependsOn(crd2java)
}
}
tasks.withType<Test> {
useJUnitPlatform()
}