# NormalizeLineEndings

@Documented
@Retention(value = RetentionPolicy.RUNTIME)
@Target(value = [ElementType.METHOD, ElementType.FIELD])
annotation class NormalizeLineEndings

Attached to an input property to specify that line endings should be normalized when snapshotting inputs. Two files with the same contents but different line endings will be considered equivalent. Line ending normalization is only supported with ASCII encoding and its supersets (i.e. UTF-8, ISO-8859-1, etc). Other encodings (e.g. UTF-16) will be treated as binary files and will not be subject to line ending normalization.

This annotation should be attached to the getter method in Java or the property in Groovy. Annotations on setters or just the field in Java are ignored.

This annotation can be applied to the following input property types:

- org.gradle.api.tasks.InputFile
- org.gradle.api.tasks.InputFiles
- org.gradle.api.tasks.InputDirectory
- org.gradle.api.tasks.Classpath
- org.gradle.api.artifacts.transform.InputArtifact
- org.gradle.api.artifacts.transform.InputArtifactDependencies

#### Since

7.2

## Functions

annotationType
Link copied to clipboard
abstract fun annotationType(): Class<out Annotation>
equals
Link copied to clipboard
abstract fun equals(p: Any): Boolean
hashCode
Link copied to clipboard
abstract fun hashCode(): Int
toString
Link copied to clipboard
abstract fun toString(): String