Build: enable ktlint+detekt, format sources, add core unit tests
This commit is contained in:
@@ -10,6 +10,9 @@ springdoc = "3.0.3"
|
||||
flexmark = "0.64.8"
|
||||
owaspSanitizer = "20260313.1"
|
||||
apachePoi = "5.5.1"
|
||||
ktlint = "14.2.0"
|
||||
detekt = "1.23.8"
|
||||
mockk = "1.14.11"
|
||||
|
||||
[libraries]
|
||||
# --- Gradle plugins used from buildSrc ---
|
||||
@@ -17,6 +20,8 @@ kotlinGradlePlugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", ver
|
||||
kotlinAllopenPlugin = { module = "org.jetbrains.kotlin:kotlin-allopen", version.ref = "kotlin" }
|
||||
kotlinNoargPlugin = { module = "org.jetbrains.kotlin:kotlin-noarg", version.ref = "kotlin" }
|
||||
springBootGradlePlugin = { module = "org.springframework.boot:spring-boot-gradle-plugin", version.ref = "springBoot" }
|
||||
ktlintGradlePlugin = { module = "org.jlleitschuh.gradle:ktlint-gradle", version.ref = "ktlint" }
|
||||
detektGradlePlugin = { module = "io.gitlab.arturbosch.detekt:detekt-gradle-plugin", version.ref = "detekt" }
|
||||
|
||||
# --- Platform BOMs (versions only) ---
|
||||
springBootBom = { module = "org.springframework.boot:spring-boot-dependencies", version.ref = "springBoot" }
|
||||
@@ -65,6 +70,8 @@ owaspHtmlSanitizer = { module = "com.googlecode.owasp-java-html-sanitizer:owasp-
|
||||
apachePoiOoxml = { module = "org.apache.poi:poi-ooxml", version.ref = "apachePoi" }
|
||||
|
||||
# --- Tests / Testcontainers (versions managed by the Boot BOM) ---
|
||||
mockk = { module = "io.mockk:mockk", version.ref = "mockk" }
|
||||
junitPlatformLauncher = { module = "org.junit.platform:junit-platform-launcher" }
|
||||
springBootTestcontainers = { module = "org.springframework.boot:spring-boot-testcontainers" }
|
||||
testcontainersPostgresql = { module = "org.testcontainers:testcontainers-postgresql" }
|
||||
testcontainersJunitJupiter = { module = "org.testcontainers:testcontainers-junit-jupiter" }
|
||||
@@ -78,3 +85,5 @@ kotlinPluginJvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
|
||||
kotlinPluginSpring = { id = "org.jetbrains.kotlin.plugin.spring", version.ref = "kotlin" }
|
||||
kotlinPluginJpa = { id = "org.jetbrains.kotlin.plugin.jpa", version.ref = "kotlin" }
|
||||
springBootPlugin = { id = "org.springframework.boot", version.ref = "springBoot" }
|
||||
ktlintPlugin = { id = "org.jlleitschuh.gradle.ktlint", version.ref = "ktlint" }
|
||||
detektPlugin = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" }
|
||||
|
||||
Reference in New Issue
Block a user