-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
82 lines (66 loc) · 2.49 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
plugins {
kotlin("jvm") version "2.1.0"
kotlin("plugin.spring") version "2.1.0"
id("org.springframework.boot") version "3.4.0"
id("io.spring.dependency-management") version "1.1.7"
id("com.diffplug.spotless") version "6.25.0"
}
group = "de.simplyroba"
version = file("version.txt").readText().trim()
java { toolchain { languageVersion = JavaLanguageVersion.of(21) } }
repositories { mavenCentral() }
val springCloudVersion = "2024.0.0"
val openapiVersion = "2.7.0"
val mockitoKotlinVersion = "5.4.0"
val scrimageVersion = "4.3.0"
// security version bumps through spring dependency management
// will not be updated through dependabot
// like extra["libXX.version"] = "XXX"
// direkt security version bumps
val guavaVersion = "33.4.0-jre"
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-webflux") // only for webclient
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:$openapiVersion")
implementation("com.sksamuel.scrimage:scrimage-core:$scrimageVersion")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.mockito.kotlin:mockito-kotlin:$mockitoKotlinVersion")
testImplementation("org.springframework.cloud:spring-cloud-starter-contract-stub-runner")
constraints {
implementation("com.google.guava:guava:$guavaVersion") {
because("https://github.com/simplyRoba/pixoo-bridge/security/dependabot/22")
because("https://github.com/simplyRoba/pixoo-bridge/security/dependabot/21")
}
}
}
dependencyManagement {
imports { mavenBom("org.springframework.cloud:spring-cloud-dependencies:$springCloudVersion") }
}
kotlin { compilerOptions { freeCompilerArgs.addAll("-Xjsr305=strict") } }
tasks.withType<Test> {
useJUnitPlatform()
testLogging { showStandardStreams = true }
}
spotless {
format("misc") {
target("**/*.yml", "**/*.yaml", "**/.gitignore")
targetExclude("build/**", ".idea/**", ".gradle/**")
trimTrailingWhitespace()
endWithNewline()
indentWithSpaces(2)
}
kotlin {
target("src/**/*.kt", "src/**/*.kts")
targetExclude("build/**/*.kts", "build/**/*.kt")
ktfmt().googleStyle()
indentWithSpaces(2)
}
kotlinGradle {
target("*.gradle.kts")
targetExclude("build/**/*.gradle.kts")
ktfmt().googleStyle()
}
freshmark { target("*.md") }
}