File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 13
13
// limitations under the License.
14
14
15
15
plugins {
16
- id(" com.ncorti.ktfmt.gradle" ) version " 0.20.1"
17
16
alias(libs.plugins.kotlinx.serialization)
17
+ alias(libs.plugins.spotless)
18
18
`kotlin- dsl`
19
19
}
20
20
@@ -26,15 +26,23 @@ repositories {
26
26
maven(url = " https://plugins.gradle.org/m2/" )
27
27
}
28
28
29
+ spotless {
30
+ java {
31
+ target(" src/**/*.java" )
32
+ targetExclude(" **/test/resources/**" )
33
+ googleJavaFormat(" 1.22.0" ).reorderImports(false ).skipJavadocFormatting()
34
+ }
35
+ kotlin {
36
+ target(" src/**/*.kt" )
37
+ ktfmt(" 0.52" ).googleStyle()
38
+ }
39
+ }
40
+
29
41
// Refer latest "perf-plugin" released version on https://maven.google.com/web/index.html?q=perf-plugin#com.google.firebase:perf-plugin
30
42
// The System property allows us to integrate with an unreleased version from https://bityl.co/3oYt.
31
43
// Refer go/fireperf-plugin-test-on-head for more details.
32
44
val perfPluginVersion = System .getenv(" FIREBASE_PERF_PLUGIN_VERSION" ) ? : " 1.4.1"
33
45
34
- ktfmt {
35
- googleStyle()
36
- }
37
-
38
46
dependencies {
39
47
// Firebase performance plugin, it should be added here because of how gradle dependency
40
48
// resolution works, otherwise it breaks Fireperf Test Apps.
You can’t perform that action at this time.
0 commit comments