Package com.diffplug.gradle.spotless
Class ScalaExtension
- java.lang.Object
-
- com.diffplug.gradle.spotless.FormatExtension
-
- com.diffplug.gradle.spotless.ScalaExtension
-
public class ScalaExtension extends FormatExtension
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ScalaExtension.ScalaFmtConfig
-
Nested classes/interfaces inherited from class com.diffplug.gradle.spotless.FormatExtension
FormatExtension.ClangFormatConfig, FormatExtension.EclipseWtpConfig, FormatExtension.LicenseHeaderConfig, FormatExtension.NpmStepConfig<T extends FormatExtension.NpmStepConfig<?>>, FormatExtension.PrettierConfig
-
-
Field Summary
-
Fields inherited from class com.diffplug.gradle.spotless.FormatExtension
steps, target, targetExclude
-
-
Constructor Summary
Constructors Constructor Description ScalaExtension(SpotlessExtension spotless)
-
Method Summary
All Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description default FileCollection
getSources(Project project, java.lang.String message, java.util.function.Function<SourceSet,SourceDirectorySet> sourceSetSourceDirectory, Spec<? super java.io.File> filterSpec)
ScalaExtension.ScalaFmtConfig
scalafmt()
ScalaExtension.ScalaFmtConfig
scalafmt(java.lang.String version)
protected void
setupTask(SpotlessTask task)
If the user hasn't specified the files yet, we'll assume he/she means all of the scala files.-
Methods inherited from class com.diffplug.gradle.spotless.FormatExtension
addStep, bumpThisNumberIfACustomStepChanges, clangFormat, clangFormat, clearSteps, createIndependentApplyTask, createIndependentApplyTaskLazy, custom, custom, eclipseWtp, eclipseWtp, encoding, endWithNewline, getEncoding, getExistingStepIdx, getLineEndings, getProject, getRatchetFrom, ignoreErrorForPath, ignoreErrorForStep, indentWithSpaces, indentWithSpaces, indentWithTabs, indentWithTabs, isLicenseHeaderStep, licenseHeader, licenseHeaderFile, nativeCmd, noDefaultTargetException, parseTarget, prettier, prettier, prettier, provisioner, ratchetFrom, replace, replaceRegex, replaceStep, setEncoding, setEncoding, setLineEndings, setRatchetFrom, target, targetExclude, toggleOffOn, toggleOffOn, toggleOffOnDisable, toggleOffOnRegex, trimTrailingWhitespace, withinBlocks, withinBlocks, withinBlocksRegex, withinBlocksRegex
-
-
-
-
Constructor Detail
-
ScalaExtension
@Inject public ScalaExtension(SpotlessExtension spotless)
-
-
Method Detail
-
scalafmt
public ScalaExtension.ScalaFmtConfig scalafmt()
-
scalafmt
public ScalaExtension.ScalaFmtConfig scalafmt(java.lang.String version)
-
setupTask
protected void setupTask(SpotlessTask task)
If the user hasn't specified the files yet, we'll assume he/she means all of the scala files.- Overrides:
setupTask
in classFormatExtension
-
getSources
public default FileCollection getSources(Project project, java.lang.String message, java.util.function.Function<SourceSet,SourceDirectorySet> sourceSetSourceDirectory, Spec<? super java.io.File> filterSpec)
-
-