Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit cb758f0

Browse files
authored
Update license plugin and trim license headers (#399)
* Update license plugin and trim license headers * Samples: Update license plugin and trim license headers
1 parent 97be1ca commit cb758f0

File tree

183 files changed

+371
-361
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+371
-361
lines changed

pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,16 @@
100100
<plugin>
101101
<groupId>org.codehaus.mojo</groupId>
102102
<artifactId>license-maven-plugin</artifactId>
103-
<version>1.14</version>
103+
<version>2.0.0</version>
104104
<configuration>
105105
<inceptionYear>2015</inceptionYear>
106106
<licenseName>apache_v2</licenseName>
107107
<addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
108108
<canUpdateCopyright>true</canUpdateCopyright>
109109
<canUpdateDescription>true</canUpdateDescription>
110110
<canUpdateLicense>true</canUpdateLicense>
111+
<trimHeaderLine>true</trimHeaderLine>
112+
<emptyLineAfterHeader>true</emptyLineAfterHeader>
111113
<roots>
112114
<root>src/main/java</root>
113115
<root>src/test/java</root>

samples/java-webflux/pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,14 +272,16 @@
272272
<plugin>
273273
<groupId>org.codehaus.mojo</groupId>
274274
<artifactId>license-maven-plugin</artifactId>
275-
<version>1.14</version>
275+
<version>2.0.0</version>
276276
<configuration>
277277
<inceptionYear>2015</inceptionYear>
278278
<licenseName>apache_v2</licenseName>
279279
<addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
280280
<canUpdateCopyright>true</canUpdateCopyright>
281281
<canUpdateDescription>true</canUpdateDescription>
282282
<canUpdateLicense>true</canUpdateLicense>
283+
<trimHeaderLine>true</trimHeaderLine>
284+
<emptyLineAfterHeader>true</emptyLineAfterHeader>
283285
<roots>
284286
<root>src/main/java</root>
285287
<root>src/test/java</root>

samples/java-webflux/src/main/java/capital/scalable/restdocs/example/Application.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

samples/java-webflux/src/main/java/capital/scalable/restdocs/example/items/ItemResource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

samples/java-webflux/src/main/java/capital/scalable/restdocs/example/items/ItemResponse.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

samples/java-webflux/src/main/java/capital/scalable/restdocs/example/items/ItemUpdateRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

samples/java-webflux/src/main/java/capital/scalable/restdocs/example/jackson/JsonConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

samples/java-webflux/src/main/java/capital/scalable/restdocs/example/security/CustomUserDetailsService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

samples/java-webflux/src/main/java/capital/scalable/restdocs/example/security/WebSecurityConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

samples/java-webflux/src/test/java/capital/scalable/restdocs/example/items/ItemResourceTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing, software
1414
* distributed under the License is distributed on an "AS IS" BASIS,
1515
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

0 commit comments

Comments
 (0)