diff --git a/.license-template b/.license-template new file mode 100644 index 00000000..a4173424 --- /dev/null +++ b/.license-template @@ -0,0 +1,15 @@ +/* + * Copyright (C) $YEAR Yubico. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ \ No newline at end of file diff --git a/buildSrc/src/main/groovy/project-convention-spotless.gradle b/buildSrc/src/main/groovy/project-convention-spotless.gradle index cbd321c5..7d015739 100644 --- a/buildSrc/src/main/groovy/project-convention-spotless.gradle +++ b/buildSrc/src/main/groovy/project-convention-spotless.gradle @@ -24,5 +24,7 @@ spotless { googleJavaFormat('1.25.2') trimTrailingWhitespace() endWithNewline() + licenseHeaderFile rootProject.file('.license-template') + ratchetFrom 'origin/main' } }