1
0
mirror of https://github.com/gitattributes/gitattributes.git synced 2025-01-22 08:18:50 -05:00
gitattributes/Java.gitattributes
Daniel Rothmaler 695406f496 Add Config for Maven-/Gradle-Wrapper-Scripts
Maven and Gradle provide quite common wrapper scripts to use them
without explicitly installing them before.
This is done by `mvnw` and `gradlew` shell scripts,
without an explicit `.sh` extension.
The Windows versions of the scripts to contain the `.cmd` extension,
so there is no need to handle them explicitly.
2023-03-10 18:06:29 +01:00

38 lines
1.0 KiB
Plaintext

# Java sources
*.java text diff=java
*.kt text diff=kotlin
*.groovy text diff=java
*.scala text diff=java
*.gradle text diff=java
*.gradle.kts text diff=kotlin
# These files are text and should be normalized (Convert crlf => lf)
*.css text diff=css
*.scss text diff=css
*.sass text
*.df text
*.htm text diff=html
*.html text diff=html
*.js text
*.jsp text
*.jspf text
*.jspx text
*.properties text
*.tld text
*.tag text
*.tagx text
*.xml text
# These files are binary and should be left untouched
# (binary is a macro for -text -diff)
*.class binary
*.dll binary
*.ear binary
*.jar binary
*.so binary
*.war binary
*.jks binary
# Common build-tool wrapper scripts ('.cmd' versions are handled by 'Common.gitattributes')
mvnw text eol=lf
gradlew text eol=lf