diff --git a/build.gradle b/build.gradle index f7a73f0..011de3d 100644 --- a/build.gradle +++ b/build.gradle @@ -1,11 +1,25 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. +buildscript { + ext { + compose_version = '1.0.4' + } +} -task clean(type: Delete) { - delete rootProject.buildDir +plugins { + id "com.diffplug.spotless" version "5.17.0" } -buildscript { - ext { - compose_version = '1.0.4' - } +spotless { + // optional: limit format enforcement to just the files changed by this feature branch + ratchetFrom 'origin/main' + + format 'misc', { + // define the files to apply `misc` to + target '*.gradle', '*.md', '.gitignore' + + // define the steps to apply to those files + trimTrailingWhitespace() + indentWithTabs() // or spaces. Takes an integer argument if you don't like 4 + endWithNewline() + } }