Skip to content

Commit 6964d87

Browse files
committed
chore: configure license to java files
1 parent e79fc4a commit 6964d87

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

build-logic/src/main/groovy/buildlogic.spotless-java-conventions.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ spotless {
88
formatAnnotations()
99
removeUnusedImports()
1010
importOrder('java|javax', 'org', 'com', 'com.diffplug', '', '\\#')
11+
licenseHeaderFile rootProject.file('gradle/spotless.license')
1112
}
1213
}

gradle/spotless.license

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright $YEAR DiffPlug
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/

0 commit comments

Comments
 (0)