Skip to content

Commit e25c4f9

Browse files
committed
Added Maven plugin to add license boiler plate to released code (during compile step)
1 parent c90ccf3 commit e25c4f9

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

pom.xml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,42 @@
280280
</execution>
281281
</executions>
282282
</plugin>
283+
284+
<plugin>
285+
<groupId>com.mycila</groupId>
286+
<artifactId>license-maven-plugin</artifactId>
287+
<version>2.5</version>
288+
<configuration>
289+
<header>com/mycila/maven/plugin/license/templates/APACHE-2.txt</header>
290+
<properties>
291+
<owner>Benny Bottema</owner>
292+
<year>2019</year>
293+
<email>benny@bennybottema.com</email>
294+
</properties>
295+
<mapping>
296+
<java>SLASHSTAR_STYLE</java>
297+
</mapping>
298+
<includes>
299+
<include>**/*.java</include>
300+
</includes>
301+
</configuration>
302+
<executions>
303+
<execution>
304+
<id>clean-remove</id>
305+
<phase>clean</phase>
306+
<goals>
307+
<goal>remove</goal>
308+
</goals>
309+
</execution>
310+
<execution>
311+
<id>compile-format</id>
312+
<phase>compile</phase>
313+
<goals>
314+
<goal>format</goal>
315+
</goals>
316+
</execution>
317+
</executions>
318+
</plugin>
283319
</plugins>
284320
</build>
285321

0 commit comments

Comments
 (0)