Package com.diffplug.gradle.spotless
-
Interface Summary Interface Description HasBuiltinDelimiterForLicense EveryFormatExtension
has a methodlicense(licenseContent, licenseDelimiter)
, where licenseDelimiter is a regex that separates the license part of the code from the content. -
Class Summary Class Description AJacksonGradleConfig Antlr4Extension CppExtension FormatExtension Adds aspotless{Name}Check
andspotless{Name}Apply
task.FormatExtension.NpmStepConfig<T extends FormatExtension.NpmStepConfig<?>> FreshMarkExtension GherkinExtension GitRatchetGradle Gradle implementation of GitRatchet.GroovyExtension GroovyExtension.GrEclipseConfig GroovyGradleExtension JavaExtension JavascriptExtension JavascriptExtension.EslintBaseConfig<T extends JavascriptExtension.EslintBaseConfig<?>> JsonExtension JsonExtension.JacksonJsonGradleConfig KotlinExtension KotlinGradleExtension PythonExtension RegisterDependenciesTask NOT AN END-USER TASK, DO NOT USE FOR ANYTHING! - When a user asks for a formatter, we need to download the jars for that formatter - Gradle wants us to resolve all our dependencies in the root project - no new dependencies in subprojects - So, whenever a SpotlessTask in a subproject gets configured, we callRegisterDependenciesTask.hookSubprojectTask(SpotlessTask)
, which makes this task a dependency of the SpotlessTask - When this "registerDependencies" task does its up-to-date check, it queries the task execution graph to see which SpotlessTasks are at risk of being executed, and causes them all to be evaluated safely in the root buildscript.ScalaExtension SpotlessApply SpotlessCheck SpotlessDiagnoseTask SpotlessExtension SpotlessExtensionImpl SpotlessExtensionPredeclare SpotlessPlugin SpotlessPluginRedirect SpotlessTask SpotlessTaskImpl SpotlessTaskService Allows the check and apply tasks to coordinate with each other (and the source task) to reduce duplicated work (e.g.SqlExtension TypescriptExtension YamlExtension