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 1313// limitations under the License.
1414
1515plugins {
16- id(" com.ncorti.ktfmt.gradle" ) version " 0.20.1"
1716 alias(libs.plugins.kotlinx.serialization)
17+ alias(libs.plugins.spotless)
1818 `kotlin- dsl`
1919}
2020
@@ -26,15 +26,23 @@ repositories {
2626 maven(url = " https://plugins.gradle.org/m2/" )
2727}
2828
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+
2941// Refer latest "perf-plugin" released version on https://maven.google.com/web/index.html?q=perf-plugin#com.google.firebase:perf-plugin
3042// The System property allows us to integrate with an unreleased version from https://bityl.co/3oYt.
3143// Refer go/fireperf-plugin-test-on-head for more details.
3244val perfPluginVersion = System .getenv(" FIREBASE_PERF_PLUGIN_VERSION" ) ? : " 1.4.1"
3345
34- ktfmt {
35- googleStyle()
36- }
37-
3846dependencies {
3947 // Firebase performance plugin, it should be added here because of how gradle dependency
4048 // resolution works, otherwise it breaks Fireperf Test Apps.
You can’t perform that action at this time.
0 commit comments