Skip to content

Commit 3a93240

Browse files
author
Alexandre Dutra
committed
Prevent build from failing when current year does not match license headers.
1 parent 9a44f8a commit 3a93240

2 files changed

Lines changed: 2 additions & 26 deletions

File tree

pom.xml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -171,28 +171,9 @@
171171
</excludes>
172172
</configuration>
173173
</plugin>
174-
<plugin>
175-
<groupId>org.codehaus.mojo</groupId>
176-
<artifactId>build-helper-maven-plugin</artifactId>
177-
<version>1.9.1</version>
178-
<executions>
179-
<execution>
180-
<id>timestamp-property</id>
181-
<phase>initialize</phase>
182-
<goals>
183-
<goal>timestamp-property</goal>
184-
</goals>
185-
<configuration>
186-
<name>currentYear</name>
187-
<pattern>yyyy</pattern>
188-
<locale>en_US</locale>
189-
</configuration>
190-
</execution>
191-
</executions>
192-
</plugin>
193174
<!--
194175
To update license headers run:
195-
mvn license:format -DcurrentYear=XXXX
176+
mvn license:format
196177
-->
197178
<plugin>
198179
<groupId>com.mycila</groupId>
@@ -222,11 +203,6 @@
222203
<goals>
223204
<goal>check</goal>
224205
</goals>
225-
<configuration>
226-
<properties>
227-
<currentYear>${currentYear}</currentYear>
228-
</properties>
229-
</configuration>
230206
</execution>
231207
</executions>
232208
</plugin>

src/license/header.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (C) ${project.inceptionYear}-${currentYear} DataStax Inc.
1+
Copyright (C) ${project.inceptionYear}-2015 DataStax Inc.
22

33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)