Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ dependencies {
api("org.springframework.boot:spring-boot-starter-jdbc")
api("org.springframework.boot:spring-boot-starter-data-redis")
api("org.springframework.boot:spring-boot-starter-liquibase")
api("org.liquibase:liquibase-core:5.0.2")
api("org.liquibase:liquibase-core:5.0.3")
api(libs.google.api.services.gmail)
api("net.logstash.logback:logstash-logback-encoder:9.0")
implementation(platform(libs.spring.ai.bom))
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
base
id("com.diffplug.spotless") version "8.4.0"
id("com.diffplug.spotless") version "8.5.1"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify whether a Spotless plugin alias already exists and where hardcoded Spotless versions are declared.
rg -n --type=toml -C2 'spotless|com\.diffplug\.spotless' gradle/libs.versions.toml
rg -n --type=kotlin -C2 'com\.diffplug\.spotless"\)\s+version' build.gradle.kts

Repository: kl3inIT/zero-mail

Length of output: 141


🏁 Script executed:

cat -n gradle/libs.versions.toml | head -50

Repository: kl3inIT/zero-mail

Length of output: 3695


🏁 Script executed:

#!/bin/bash
# Check current plugin declarations in gradle/libs.versions.toml
rg -A 10 '^\[plugins\]' gradle/libs.versions.toml

Repository: kl3inIT/zero-mail

Length of output: 239


🌐 Web query:

Spotless Gradle plugin latest stable version 2024 2025 compatibility Gradle 9

💡 Result:

As of May 19, 2026, the latest stable version of the Spotless Gradle plugin is 8.5.0, released on May 14, 2026 [1][2]. The Spotless Gradle plugin is compatible with Gradle 9. The project has actively prepared for and tested against Gradle 9.x releases [3][4][5][6]. Recent development activity, including commits and pull requests, confirms that the plugin is maintained to support Gradle 9.x environments (e.g., testing against Gradle 9.4.0) [4][7][8]. Key compatibility requirements for modern versions of the Spotless Gradle plugin include: - JRE: Requires JRE 17 or newer [9][10][11]. - Gradle: Requires Gradle 8.1 or newer (as of version 8.1.0 and later) [12]. Users upgrading to Gradle 9.x should ensure they are using a recent version of the Spotless plugin (8.x series) to benefit from the necessary strict plugin type validations and compatibility fixes implemented to support Gradle's major version evolution [3][5].

Citations:


Move Spotless plugin to version catalog to enforce centralized dependency management.

Line 3 hardcodes the plugin version in build.gradle.kts, bypassing the catalog control required by project conventions.

Suggested change
# gradle/libs.versions.toml
 [plugins]
 springBoot = { id = "org.springframework.boot", version.ref = "springBoot" }
 springDependencyManagement = { id = "io.spring.dependency-management", version = "1.1.7" }
+spotless = { id = "com.diffplug.spotless", version = "8.5.1" }
# build.gradle.kts
 plugins {
     base
-    id("com.diffplug.spotless") version "8.5.1"
+    alias(libs.plugins.spotless)
 }

Per coding guidelines, use libs.versions.toml catalog in multi-module Kotlin DSL projects.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@build.gradle.kts` at line 3, Replace the hardcoded plugin version for
id("com.diffplug.spotless") in build.gradle.kts with a version coming from the
version catalog: add a plugin entry (e.g. a "spotless" key) in
libs.versions.toml under [plugins] with the desired version, and then reference
that catalog key from the build script instead of the literal "8.5.1"; update
any plugin-block usage of id("com.diffplug.spotless") to use the catalog version
reference so the plugin version is centrally managed.

}

configure(
Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ springAi = "2.0.0-M6"
# Spring Modulith 2.0.x is the Spring Boot 4-compatible line. Keep this GA pin in
# sync with buildSrc/src/main/kotlin/zeromail.modulith-conventions.gradle.kts.
springModulith = "2.0.6"
liquibase = "5.0.2"
liquibase = "5.0.3"
archunit = "1.4.2"
logstashLogback = "9.0"
googleAuthLibrary = "1.47.0"
Expand All @@ -15,8 +15,8 @@ jsoup = "1.22.2"
shedlock = "7.7.0"
jtokkit = "1.1.0"
re2j = "1.8"
jakartaMail = "2.0.4"
jakartaMailApi = "2.1.3"
jakartaMail = "2.0.5"
jakartaMailApi = "2.1.5"
resend = "4.13.0"

[libraries]
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
Expand Down
Loading