Skip to content

Commit ed381bb

Browse files
committed
[feature] Add license headers to source code files and enforce them
1 parent 2e9cf1d commit ed381bb

25 files changed

Lines changed: 416 additions & 0 deletions

pom.xml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright © 2025 Evolved Binary Ltd. (tech@evolvedbinary.com)
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
18+
-->
219
<project xmlns="http://maven.apache.org/POM/4.0.0"
320
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
421
<modelVersion>4.0.0</modelVersion>
@@ -12,6 +29,8 @@
1229
<url>https://www.evolvedbinary.com</url>
1330
</organization>
1431

32+
<inceptionYear>2025</inceptionYear>
33+
1534
<properties>
1635
<project.build.source>21</project.build.source>
1736
<project.build.target>21</project.build.target>
@@ -336,6 +355,38 @@
336355
</executions>
337356
</plugin>
338357

358+
<plugin>
359+
<groupId>com.mycila</groupId>
360+
<artifactId>license-maven-plugin</artifactId>
361+
<version>5.0.0</version>
362+
<configuration>
363+
<licenseSets>
364+
<licenseSet>
365+
<header>com/mycila/maven/plugin/license/templates/APACHE-2.txt</header>
366+
<properties>
367+
<year>${project.inceptionYear}</year>
368+
<owner>Evolved Binary Ltd.</owner>
369+
<email>tech@evolvedbinary.com</email>
370+
</properties>
371+
<excludes>
372+
<exclude>src/main/resources/schemas/**</exclude>
373+
<exclude>src/main/resources/static/**</exclude>
374+
<exclude>src/test/resources/mock-data/**</exclude>
375+
</excludes>
376+
</licenseSet>
377+
</licenseSets>
378+
</configuration>
379+
<executions>
380+
<execution>
381+
<id>check-headers</id>
382+
<phase>verify</phase>
383+
<goals>
384+
<goal>check</goal>
385+
</goals>
386+
</execution>
387+
</executions>
388+
</plugin>
389+
339390
<!-- Maven Compiler Plugin -->
340391
<plugin>
341392
<groupId>org.apache.maven.plugins</groupId>

src/main/java/com/evolvedbinary/bblValidator/Application.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright © 2025 Evolved Binary Ltd. (tech@evolvedbinary.com)
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+
*/
116
package com.evolvedbinary.bblValidator;
217

318
import io.micronaut.runtime.Micronaut;

src/main/java/com/evolvedbinary/bblValidator/controller/SchemaController.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright © 2025 Evolved Binary Ltd. (tech@evolvedbinary.com)
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+
*/
116
package com.evolvedbinary.bblValidator.controller;
217

318
import com.evolvedbinary.bblValidator.dto.ErrorResponse;

src/main/java/com/evolvedbinary/bblValidator/controller/ValidateController.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright © 2025 Evolved Binary Ltd. (tech@evolvedbinary.com)
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+
*/
116
package com.evolvedbinary.bblValidator.controller;
217

318
import com.evolvedbinary.bblValidator.dto.ErrorResponse;

src/main/java/com/evolvedbinary/bblValidator/controller/ValidationViewController.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright © 2025 Evolved Binary Ltd. (tech@evolvedbinary.com)
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+
*/
116
package com.evolvedbinary.bblValidator.controller;
217

318
import com.evolvedbinary.bblValidator.dto.ErrorResponse;

src/main/java/com/evolvedbinary/bblValidator/controller/VersionController.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright © 2025 Evolved Binary Ltd. (tech@evolvedbinary.com)
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+
*/
116
package com.evolvedbinary.bblValidator.controller;
217

318
import com.evolvedbinary.bblValidator.dto.ApiVersion;

src/main/java/com/evolvedbinary/bblValidator/dto/ApiVersion.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright © 2025 Evolved Binary Ltd. (tech@evolvedbinary.com)
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+
*/
116
package com.evolvedbinary.bblValidator.dto;
217

318
import io.micronaut.serde.annotation.Serdeable;

src/main/java/com/evolvedbinary/bblValidator/dto/ErrorResponse.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright © 2025 Evolved Binary Ltd. (tech@evolvedbinary.com)
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+
*/
116
package com.evolvedbinary.bblValidator.dto;
217

318
import io.micronaut.serde.annotation.Serdeable;

src/main/java/com/evolvedbinary/bblValidator/dto/ResponseObject.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright © 2025 Evolved Binary Ltd. (tech@evolvedbinary.com)
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+
*/
116
package com.evolvedbinary.bblValidator.dto;
217

318
/**

src/main/java/com/evolvedbinary/bblValidator/dto/SchemaInfo.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright © 2025 Evolved Binary Ltd. (tech@evolvedbinary.com)
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+
*/
116
package com.evolvedbinary.bblValidator.dto;
217

318
import io.micronaut.serde.annotation.Serdeable;

0 commit comments

Comments
 (0)