-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
114 lines (97 loc) · 2.78 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
114 lines (97 loc) · 2.78 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import dev.detekt.gradle.Detekt
plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.kotlin.spring)
alias(libs.plugins.spring.boot)
alias(libs.plugins.spring.dependency.management)
alias(libs.plugins.ktlint)
alias(libs.plugins.detekt)
alias(libs.plugins.kover)
id("ppotto.database")
}
group = "com.github.nexters"
version = "1.0.0-alpha"
extra["jooq.version"] =
libs.versions.jooq
.get()
kotlin {
jvmToolchain(25)
compilerOptions {
freeCompilerArgs.addAll("-Xjsr305=strict", "-Xannotation-default-target=param-property")
}
sourceSets.getByName("main") {
kotlin.srcDir("src/generated/jooq")
}
}
repositories {
mavenCentral()
}
dependencies {
implementation(platform(libs.spring.cloud.dependencies))
implementation(libs.flyway.database.postgresql)
implementation(libs.jackson.module.kotlin)
implementation(libs.jooq.kotlin)
implementation(libs.kotlin.reflect)
implementation(libs.spring.boot.starter.actuator)
implementation(libs.spring.boot.starter.flyway)
implementation(libs.spring.boot.starter.jooq)
implementation(libs.spring.boot.starter.security)
implementation(libs.spring.boot.starter.validation)
implementation(libs.spring.boot.starter.webmvc)
implementation(libs.springdoc.openapi.starter.webmvc.ui)
runtimeOnly(libs.postgresql)
developmentOnly(libs.spring.boot.docker.compose)
developmentOnly(libs.spring.dotenv)
testImplementation(libs.kotest.assertions.core)
testImplementation(libs.kotest.extensions.spring)
testImplementation(libs.kotest.runner.junit5)
testImplementation(libs.spring.boot.starter.flyway.test)
testImplementation(libs.spring.boot.starter.webmvc.test)
testImplementation(libs.spring.boot.testcontainers)
testImplementation(libs.testcontainers.junit.jupiter)
testImplementation(libs.testcontainers.postgresql)
testRuntimeOnly(libs.junit.platform.launcher)
}
ktlint {
filter {
exclude {
it.file.path
.contains("src/generated")
}
}
}
detekt {
buildUponDefaultConfig = true
config.setFrom("config/detekt/detekt.yml")
}
tasks.withType<Detekt>().configureEach {
exclude {
it.file.path
.contains("src/generated")
}
}
configurations.matching { it.name == "detekt" }.all {
resolutionStrategy.eachDependency {
if (requested.group == "org.jetbrains.kotlin") {
useVersion(
libs.versions.detekt.kotlin
.get(),
)
}
}
}
kover {
reports {
filters {
excludes {
packages("com.github.nexters.ppotto.jooq")
}
}
}
}
tasks.jar {
enabled = false
}
tasks.withType<Test> {
useJUnitPlatform()
}