Add LF line endings
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..4130d4b
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,6 @@
+# Checked by Spotless (LF line endings)
+*.java text eol=lf
+*.xml  text eol=lf
+*.yaml text eol=lf
+*.yml  text eol=lf
+
diff --git a/pom.xml b/pom.xml
index 4d7e85a..52e9535 100644
--- a/pom.xml
+++ b/pom.xml
@@ -170,7 +170,7 @@
   ~ See the License for the specific language governing permissions and
   ~ limitations under the License.
   --&gt;</content>
-                <delimiter>&lt;\w</delimiter>
+                <delimiter>&lt;(!DOCTYPE|\w)</delimiter>
               </licenseHeader>
             </format>
           </formats>
@@ -202,6 +202,7 @@
               <delimiter>[^#]</delimiter>
             </licenseHeader>
           </yaml>
+          <lineEndings>UNIX</lineEndings>
         </configuration>
         <executions>
           <execution>