Skip to content

Commit 4cbb4d4

Browse files
committed
Use working and supported license header plugin
1 parent 9a0eae6 commit 4cbb4d4

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

vaadin-addon-template/pom.xml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
</licenses>
4343

4444
<properties>
45-
<license.licenseName>apache_v2</license.licenseName>
46-
4745
<javaVersion>11</javaVersion>
4846
<maven.compiler.release>${javaVersion}</maven.compiler.release>
4947

@@ -106,28 +104,35 @@
106104
<groupId>com.vaadin</groupId>
107105
<artifactId>vaadin-core</artifactId>
108106
</dependency>
109-
110107
</dependencies>
111108

112109
<build>
113110
<plugins>
114111
<plugin>
115-
<groupId>org.codehaus.mojo</groupId>
112+
<groupId>com.mycila</groupId>
116113
<artifactId>license-maven-plugin</artifactId>
117-
<version>2.0.0</version>
114+
<version>4.1</version>
115+
<configuration>
116+
<properties>
117+
<email>${project.organization.url}</email>
118+
</properties>
119+
<licenseSets>
120+
<licenseSet>
121+
<header>com/mycila/maven/plugin/license/templates/APACHE-2.txt</header>
122+
<includes>
123+
<include>src/main/java/**</include>
124+
<include>src/test/java/**</include>
125+
</includes>
126+
</licenseSet>
127+
</licenseSets>
128+
</configuration>
118129
<executions>
119130
<execution>
120131
<id>first</id>
121132
<goals>
122-
<goal>update-file-header</goal>
133+
<goal>format</goal>
123134
</goals>
124135
<phase>process-sources</phase>
125-
<configuration>
126-
<roots>
127-
<root>src/main/java</root>
128-
<root>src/test/java</root>
129-
</roots>
130-
</configuration>
131136
</execution>
132137
</executions>
133138
</plugin>

0 commit comments

Comments
 (0)