Skip to content
Open
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
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {
id("dd-trace-java.config-inversion-linter")
id("dd-trace-java.ci-jobs")

id("com.diffplug.spotless") version "8.4.0"
alias(libs.plugins.spotless)
id("me.champeau.gradle.japicmp") version "0.4.3"
id("com.github.spotbugs") version "6.5.10"
id("de.thetaphi.forbiddenapis") version "3.10"
Expand Down Expand Up @@ -43,10 +43,10 @@ with(extensions["spotlessPredeclare"] as SpotlessExtension) {
tableTestFormatter(libs.versions.tabletest.formatter.get())
}
groovyGradle {
greclipse()
greclipse(libs.versions.greclipse.get())
}
groovy {
greclipse()
greclipse(libs.versions.greclipse.get())
}
kotlinGradle {
ktlint(libs.versions.ktlint.get())
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
`java-gradle-plugin`
`kotlin-dsl`
`jvm-test-suite`
id("com.diffplug.spotless") version "8.4.0"
alias(libs.plugins.spotless)
}

// The buildSrc still needs to target Java 8 as build time instrumentation and muzzle plugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import org.gradle.api.file.DuplicatesStrategy.INCLUDE

plugins {
java
id("com.diffplug.spotless") version "8.4.0"
alias(libs.plugins.spotless)

@bric3 bric3 Aug 14, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

praise: Thanks, I was eyeing this as well :)

alias(libs.plugins.shadow)
}

Expand Down
3 changes: 3 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ spotbugs_annotations = "4.10.3"

# Source code formatters
google-java-format = "1.36.1"
greclipse = "4.27" # Pinned. See: https://github.com/diffplug/spotless/issues/3013
ktlint = "1.8.0"
scalafmt = "3.11.5"
spotless = "8.9.0"
tabletest-formatter = "1.1.2"

# DataDog libs and forks
Expand Down Expand Up @@ -200,3 +202,4 @@ spock = ["spock-core", "objenesis"]

[plugins]
shadow = { id = "com.gradleup.shadow", version.ref = "shadow" }
spotless = { id = "com.diffplug.spotless", version.ref = "spotless" }
4 changes: 2 additions & 2 deletions gradle/spotless.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spotless {
} else {
target '*.gradle'
}
greclipse().configFile(configPath + '/enforcement/spotless-groovy.properties')
greclipse(libs.versions.greclipse.get()).configFile(configPath + '/enforcement/spotless-groovy.properties')
}

kotlinGradle {
Expand All @@ -61,7 +61,7 @@ spotless {
// so it formats Java files by default (unless `excludeJava` is used).
}
targetExclude(buildDirectoryFiles)
greclipse().configFile(configPath + '/enforcement/spotless-groovy.properties')
greclipse(libs.versions.greclipse.get()).configFile(configPath + '/enforcement/spotless-groovy.properties')
}
}

Expand Down
2 changes: 1 addition & 1 deletion test-published-dependencies/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id("com.diffplug.spotless") version "8.4.0"
alias(libs.plugins.spotless)
}

val sharedConfigDirectory = "$rootDir/../gradle"
Expand Down
Loading