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
6 changes: 3 additions & 3 deletions build-logic/src/main/kotlin/spotless.changelog.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spotlessChangelog {
commitMessage("Published $kind/{{version}}") // {{version}} will be replaced
tagMessage("{{changes}}")
runAfterPush(
"gh release create $kind/{{version}} --title '$releaseTitle v{{version}}' --notes-from-tag"
"gh release create $kind/{{version}} --title '$releaseTitle v{{version}}' --notes-from-tag",
)
}

Expand All @@ -32,7 +32,7 @@ if (project == rootProject) {
if (changelogPushTasks.size > 1) {
// make sure only one changelog gets published per tag/commit
throw IllegalArgumentException(
"Run changelogPush one at a time:\n" + changelogPushTasks.joinToString("\n")
"Run changelogPush one at a time:\n" + changelogPushTasks.joinToString("\n"),
)
}
if (changelogPushTasks.size == 1) {
Expand All @@ -55,7 +55,7 @@ if (project == rootProject) {
"You should run :changelogPush first! Else you'll be missing out on:\n" +
"${rootSpotlessChangelog.parsedChangelog.unreleasedChanges()}\n" +
"If it's okay to miss those and link against the old ${rootSpotlessChangelog.versionLast} then " +
"add -PignoreUnreleasedLib=true"
"add -PignoreUnreleasedLib=true",
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion build-logic/src/main/kotlin/spotless.rewrite.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ rewrite {
"**idea/full.clean.java",
"**package-info.java",
"**testlib/src/main/resources**",
)
),
)
isExportDatatables = true
failOnDryRunResults = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ plugins {
id("com.diffplug.spotless")
}

// The released Spotless plugin used here only knows the legacy `com.facebook:ktfmt` coordinate.
// TODO: switch back to `libs.ktfmt` once a Spotless release supporting ktfmt 0.65+ is used.
val KTFMT_VERSION = "0.64"

spotless {
if (project != rootProject) {
java {
Expand All @@ -27,21 +23,11 @@ spotless {
}
kotlin {
target("build-logic/src/**/*.kt")
ktfmt(KTFMT_VERSION)
ktfmt(libs.ktfmt.get().version)
}
kotlinGradle {
target("*.gradle.kts", "build-logic/*.gradle.kts", "build-logic/src/**/*.gradle.kts")
ktfmt(KTFMT_VERSION)
}
groovyGradle {
target("*.gradle", "gradle/*.gradle")
greclipse()
.configFile(
rootProject.files(
"gradle/spotless.eclipseformat.xml",
"gradle/spotless.groovyformat.prefs",
)
)
ktfmt(libs.ktfmt.get().version)
}
format("dotfiles") {
target(".gitignore", ".gitattributes", ".editorconfig")
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ errorprone-core = "com.google.errorprone:error_prone_core:2.50.0"
[plugins]
buildconfig = "com.github.gmazzo.buildconfig:6.1.2"
test-logger = "com.adarshr.test-logger:4.0.0"
spotless = "com.diffplug.spotless:8.10.3"
spotless = "com.diffplug.spotless:8.10.4"
spotless-changelog = "com.diffplug.spotless-changelog:3.1.2"
spotbugs = "com.github.spotbugs:6.5.12"
plugin-publish = "com.gradle.plugin-publish:2.2.1"
Expand Down
2 changes: 1 addition & 1 deletion lib-extra/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ p2deps {
into("groovyCompileOnly") {
p2repo("https://download.eclipse.org/eclipse/updates/4.26/")
p2repo(
"https://groovy.jfrog.io/artifactory/plugins-release/org/codehaus/groovy/groovy-eclipse-integration/4.8.0/e4.26/"
"https://groovy.jfrog.io/artifactory/plugins-release/org/codehaus/groovy/groovy-eclipse-integration/4.8.0/e4.26/",
)
install("org.codehaus.groovy.eclipse.refactoring")
install("org.codehaus.groovy.eclipse.core")
Expand Down
2 changes: 1 addition & 1 deletion lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ dependencies {
"compatKtLint1Dot0Dot0CompileAndTestOnly"(libs.slf4j.api)
// palantirJavaFormat
"palantirJavaFormatCompileOnly"(
pinnedLibs.palantir.java.format
pinnedLibs.palantir.java.format,
) // this version needs to stay compilable against Java 8 for CI Job testNpm
// princeOfSpace
"princeOfSpaceCompileOnly"(libs.prince.of.space.core)
Expand Down
2 changes: 0 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ pluginManagement {
}

plugins {
id("com.diffplug.spotless") version "8.10.3" apply false
id("com.github.spotbugs") version "6.5.12" apply false
id("com.gradle.develocity") version "4.6.0"
}

Expand Down
Loading