Skip to content

Use SpotlessApply in build grudlew #1222

Closed
@amarsova

Description

@amarsova

Hi everyone I use

gradle
spotless version 3.26.1
operating system : Mac 

My build.grudge.kts like :

plugins {
   id("com.diffplug.gradle.spotless") version "3.26.1"
}
--------------------------------------------------------
spotless {
    scala {
        scalafmt("2.7.0").configFile(rootProject.file(".scalafmt.conf"))
    }

}

if I want to check the Spotless I need to run ./grudlew spotlessCheck and then spotlessApply to fix the code
Is there any possibility to run the spotlessApply every time when we Build the project

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions