Skip to content

Commit b789d9b

Browse files
authored
Use gradle/libs.versions.toml to specify the Spotless version (#6328)
1 parent 034566e commit b789d9b

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ buildscript {
4040
classpath 'com.google.gms:google-services:4.3.15'
4141
classpath 'com.google.firebase:firebase-appdistribution-gradle:5.0.0'
4242
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.5'
43-
classpath "com.diffplug.spotless:spotless-plugin-gradle:7.0.0.BETA1"
43+
classpath libs.spotless.plugin.gradle
4444
}
4545
}
4646

firebase-dataconnect/gradleplugin/gradle/libs.versions.toml

Lines changed: 0 additions & 2 deletions
This file was deleted.

firebase-dataconnect/gradleplugin/plugin/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
plugins {
1818
`java-gradle-plugin`
1919
alias(firebaseLibs.plugins.kotlin.jvm)
20-
alias(libs.plugins.spotless)
20+
alias(firebaseLibs.plugins.spotless)
2121
}
2222

2323
java { toolchain { languageVersion.set(JavaLanguageVersion.of(17)) } }

gradle/libs.versions.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ protobufjavautil = "3.21.11"
2020
kotest = "5.9.1"
2121
quickcheck = "0.6"
2222
serialization = "1.5.1"
23+
spotless = "7.0.0.BETA1"
2324
androidx-test-core="1.5.0"
2425
androidx-test-junit="1.1.5"
2526
androidx-test-truth = "1.5.0"
@@ -88,6 +89,7 @@ kotest-assertions = { module = "io.kotest:kotest-assertions-core-jvm", version.r
8889
kotest-property = { module = "io.kotest:kotest-property-jvm", version.ref = "kotest" }
8990
kotest-property-arbs = { module = "io.kotest.extensions:kotest-property-arbs", version = "2.1.2" }
9091
quickcheck = { module = "net.java:quickcheck", version.ref = "quickcheck" }
92+
spotless-plugin-gradle = { module = "com.diffplug.spotless:spotless-plugin-gradle", version.ref = "spotless" }
9193
turbine = { module = "app.cash.turbine:turbine", version = "1.0.0" }
9294

9395
[bundles]
@@ -97,3 +99,4 @@ playservices = ["playservices-base", "playservices-basement", "playservices-task
9799
[plugins]
98100
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
99101
kotlinx-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "serialization-plugin" }
102+
spotless = { id = "com.diffplug.spotless", version.ref = "spotless" }

0 commit comments

Comments
 (0)