Class CssExtension

java.lang.Object
com.diffplug.gradle.spotless.FormatExtension
com.diffplug.gradle.spotless.CssExtension

public class CssExtension extends FormatExtension
Gradle step for formatting CSS files.
  • Constructor Details

  • Method Details

    • setupTask

      protected void setupTask(SpotlessTask task)
      If the user hasn't specified files, assume all CSS files should be checked.
      Overrides:
      setupTask in class FormatExtension
    • biome

      public CssExtension.BiomeCss biome()
      Adds the default version of the biome formatter. Defaults to downloading the default Biome version from the network. To work offline, you can specify the path to the Biome executable via biome().pathToExe(...).
      Overrides:
      biome in class FormatExtension
    • biome

      public CssExtension.BiomeCss biome(String version)
      Adds the given version of the biome formatter. Defaults to downloading the default Biome version from the network. To work offline, you can specify the path to the Biome executable via biome().pathToExe(...).
      Overrides:
      biome in class FormatExtension
      Parameters:
      version - Biome version to use.