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

Commit 76af31a

Browse files
authored
Copyright plugin (#196)
* removed copyrights * added copyrights * automatic license management * reformatted all sources
1 parent 320db48 commit 76af31a

File tree

116 files changed

+1150
-409
lines changed

Some content is hidden

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

116 files changed

+1150
-409
lines changed

LICENSE renamed to LICENSE.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,15 +178,15 @@
178178
APPENDIX: How to apply the Apache License to your work.
179179

180180
To apply the Apache License to your work, attach the following
181-
boilerplate notice, with the fields enclosed by brackets "{}"
181+
boilerplate notice, with the fields enclosed by brackets "[]"
182182
replaced with your own identifying information. (Don't include
183183
the brackets!) The text should be enclosed in the appropriate
184184
comment syntax for the file format. We also recommend that a
185185
file or class name and description of purpose be included on the
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright {yyyy} {name of copyright owner}
189+
Copyright [yyyy] [name of copyright owner]
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.
@@ -199,4 +199,3 @@
199199
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200200
See the License for the specific language governing permissions and
201201
limitations under the License.
202-

pom.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,32 @@
112112
<generateBackupPoms>false</generateBackupPoms>
113113
</configuration>
114114
</plugin>
115+
<plugin>
116+
<groupId>org.codehaus.mojo</groupId>
117+
<artifactId>license-maven-plugin</artifactId>
118+
<version>1.14</version>
119+
<configuration>
120+
<inceptionYear>2015</inceptionYear>
121+
<licenseName>apache_v2</licenseName>
122+
<addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
123+
<canUpdateCopyright>true</canUpdateCopyright>
124+
<canUpdateDescription>true</canUpdateDescription>
125+
<canUpdateLicense>true</canUpdateLicense>
126+
<roots>
127+
<root>src/main/java</root>
128+
<root>src/test/java</root>
129+
</roots>
130+
</configuration>
131+
<executions>
132+
<execution>
133+
<id>update-header</id>
134+
<goals>
135+
<goal>update-file-header</goal>
136+
</goals>
137+
<phase>process-sources</phase>
138+
</execution>
139+
</executions>
140+
</plugin>
115141
</plugins>
116142

117143
<pluginManagement>

spring-auto-restdocs-core/src/main/java/capital/scalable/restdocs/AutoDocumentation.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
/*
2-
* Copyright 2016 the original author or authors.
3-
*
1+
/*-
2+
* #%L
3+
* Spring Auto REST Docs Core
4+
* %%
5+
* Copyright (C) 2015 - 2018 Scalable Capital GmbH
6+
* %%
47
* Licensed under the Apache License, Version 2.0 (the "License");
58
* you may not use this file except in compliance with the License.
69
* You may obtain a copy of the License at
@@ -12,8 +15,8 @@
1215
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1316
* See the License for the specific language governing permissions and
1417
* limitations under the License.
18+
* #L%
1519
*/
16-
1720
package capital.scalable.restdocs;
1821

1922
import capital.scalable.restdocs.misc.AuthorizationSnippet;

spring-auto-restdocs-core/src/main/java/capital/scalable/restdocs/OperationAttributeHelper.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
/*
2-
* Copyright 2016 the original author or authors.
3-
*
1+
/*-
2+
* #%L
3+
* Spring Auto REST Docs Core
4+
* %%
5+
* Copyright (C) 2015 - 2018 Scalable Capital GmbH
6+
* %%
47
* Licensed under the Apache License, Version 2.0 (the "License");
58
* you may not use this file except in compliance with the License.
69
* You may obtain a copy of the License at
@@ -12,8 +15,8 @@
1215
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1316
* See the License for the specific language governing permissions and
1417
* limitations under the License.
18+
* #L%
1519
*/
16-
1720
package capital.scalable.restdocs;
1821

1922
import static org.springframework.restdocs.generate.RestDocumentationGenerator

spring-auto-restdocs-core/src/main/java/capital/scalable/restdocs/SnippetRegistry.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*-
2+
* #%L
3+
* Spring Auto REST Docs Core
4+
* %%
5+
* Copyright (C) 2015 - 2018 Scalable Capital GmbH
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
120
package capital.scalable.restdocs;
221

322
import java.util.HashMap;

spring-auto-restdocs-core/src/main/java/capital/scalable/restdocs/constraints/ConstraintAndGroupDescriptionResolver.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
/*
2-
* Copyright 2016 the original author or authors.
3-
*
1+
/*-
2+
* #%L
3+
* Spring Auto REST Docs Core
4+
* %%
5+
* Copyright (C) 2015 - 2018 Scalable Capital GmbH
6+
* %%
47
* Licensed under the Apache License, Version 2.0 (the "License");
58
* you may not use this file except in compliance with the License.
69
* You may obtain a copy of the License at
@@ -12,8 +15,8 @@
1215
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1316
* See the License for the specific language governing permissions and
1417
* limitations under the License.
18+
* #L%
1519
*/
16-
1720
package capital.scalable.restdocs.constraints;
1821

1922
import static capital.scalable.restdocs.i18n.SnippetTranslationResolver.translate;

spring-auto-restdocs-core/src/main/java/capital/scalable/restdocs/constraints/ConstraintReader.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
/*
2-
* Copyright 2016 the original author or authors.
3-
*
1+
/*-
2+
* #%L
3+
* Spring Auto REST Docs Core
4+
* %%
5+
* Copyright (C) 2015 - 2018 Scalable Capital GmbH
6+
* %%
47
* Licensed under the Apache License, Version 2.0 (the "License");
58
* you may not use this file except in compliance with the License.
69
* You may obtain a copy of the License at
@@ -12,8 +15,8 @@
1215
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1316
* See the License for the specific language governing permissions and
1417
* limitations under the License.
18+
* #L%
1519
*/
16-
1720
package capital.scalable.restdocs.constraints;
1821

1922
import java.util.List;

spring-auto-restdocs-core/src/main/java/capital/scalable/restdocs/constraints/ConstraintReaderImpl.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
/*
2-
* Copyright 2016 the original author or authors.
3-
*
1+
/*-
2+
* #%L
3+
* Spring Auto REST Docs Core
4+
* %%
5+
* Copyright (C) 2015 - 2018 Scalable Capital GmbH
6+
* %%
47
* Licensed under the Apache License, Version 2.0 (the "License");
58
* you may not use this file except in compliance with the License.
69
* You may obtain a copy of the License at
@@ -12,8 +15,8 @@
1215
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1316
* See the License for the specific language governing permissions and
1417
* limitations under the License.
18+
* #L%
1519
*/
16-
1720
package capital.scalable.restdocs.constraints;
1821

1922
import static capital.scalable.restdocs.constraints.ConstraintAndGroupDescriptionResolver.VALUE;

spring-auto-restdocs-core/src/main/java/capital/scalable/restdocs/constraints/GroupDescriptionResolver.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
/*
2-
* Copyright 2016 the original author or authors.
3-
*
1+
/*-
2+
* #%L
3+
* Spring Auto REST Docs Core
4+
* %%
5+
* Copyright (C) 2015 - 2018 Scalable Capital GmbH
6+
* %%
47
* Licensed under the Apache License, Version 2.0 (the "License");
58
* you may not use this file except in compliance with the License.
69
* You may obtain a copy of the License at
@@ -12,8 +15,8 @@
1215
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1316
* See the License for the specific language governing permissions and
1417
* limitations under the License.
18+
* #L%
1519
*/
16-
1720
package capital.scalable.restdocs.constraints;
1821

1922
import java.util.List;

spring-auto-restdocs-core/src/main/java/capital/scalable/restdocs/constraints/HumanReadableConstraintResolver.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
/*
2-
* Copyright 2016 the original author or authors.
3-
*
1+
/*-
2+
* #%L
3+
* Spring Auto REST Docs Core
4+
* %%
5+
* Copyright (C) 2015 - 2018 Scalable Capital GmbH
6+
* %%
47
* Licensed under the Apache License, Version 2.0 (the "License");
58
* you may not use this file except in compliance with the License.
69
* You may obtain a copy of the License at
@@ -12,8 +15,8 @@
1215
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1316
* See the License for the specific language governing permissions and
1417
* limitations under the License.
18+
* #L%
1519
*/
16-
1720
package capital.scalable.restdocs.constraints;
1821

1922
import static capital.scalable.restdocs.util.FormatUtil.arrayToString;

0 commit comments

Comments
 (0)