File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change 1- @file:Suppress(" UnstableApiUsage" )
2-
3- import com.android.build.api.variant.ApplicationAndroidComponentsExtension
4-
51plugins {
62 alias(libs.plugins.androidApp) apply false
73 alias(libs.plugins.androidLib) apply false
@@ -24,19 +20,6 @@ subprojects {
2420 licenseHeaderFile(rootProject.file(" source_license.txt" ))
2521 }
2622 }
27-
28- val spotlessApply = tasks.named(" spotlessApply" )
29- plugins.withId(" com.android.application" ) {
30- val componentsExtension = extensions.getByType(ApplicationAndroidComponentsExtension ::class )
31- componentsExtension.onVariants(componentsExtension.selector().all()) {
32- it.lifecycleTasks.registerPreBuild(spotlessApply)
33- }
34- }
35- plugins.withId(" java" ) {
36- tasks.named(" classes" ) {
37- dependsOn(spotlessApply)
38- }
39- }
4023}
4124
4225spotless {
You can’t perform that action at this time.
0 commit comments