-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
50 lines (44 loc) · 1.68 KB
/
build.gradle.kts
File metadata and controls
50 lines (44 loc) · 1.68 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
plugins {
java
id("com.diffplug.spotless") version "8.4.0"
}
repositories {
mavenCentral()
}
dependencies {
val flywayVersion = "12.5.0"
val testcontainersVersion = "2.0.5"
val jupiterVersion = "6.0.3"
val platformVersion = "6.0.3"
testImplementation("org.junit.jupiter:junit-jupiter:$jupiterVersion")
testImplementation("org.junit.jupiter:junit-jupiter-params:$jupiterVersion")
testImplementation("org.flywaydb:flyway-core:$flywayVersion")
testImplementation("org.flywaydb:flyway-database-postgresql:$flywayVersion")
testImplementation("org.postgresql:postgresql:42.7.11")
testImplementation("org.slf4j:slf4j-simple:2.0.17")
testImplementation("org.testcontainers:testcontainers-junit-jupiter:$testcontainersVersion")
testImplementation("org.testcontainers:testcontainers-postgresql:$testcontainersVersion")
testImplementation("org.testcontainers:testcontainers:$testcontainersVersion")
testRuntimeOnly("org.junit.platform:junit-platform-launcher:$platformVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$jupiterVersion")
}
tasks.test {
useJUnitPlatform()
}
// Spotless configuration for code formatting
spotless {
java {
target("src/**/*.java")
// Use Google Java Format (default version in Spotless 8.x is 1.28.0)
googleJavaFormat("1.28.0")
// Remove unused imports
removeUnusedImports()
// Format license header (optional - uncomment if you want to enforce license headers)
// licenseHeader("/* Licensed under Apache-2.0 */")
}
kotlin {
target("**/*.kts")
// Use ktlint 1.7.1 (default for Spotless 8.x)
ktlint("1.7.1")
}
}