LineEnding.Policy appropriate for files which are contained within the given rootFolder.LineEnding.createPolicy(File) instead, but this will work iff its a path-independent LineEnding policy.FormatExtension.customLazy(String, com.diffplug.common.base.Throwing.Supplier), but for Groovy closures.SpotlessExtension.getEncoding().SpotlessExtension.getLineEndings().SpotlessExtension.getEncoding().SpotlessExtension.getEncoding().SpotlessExtension.getLineEndings().