Skip to content

Commit 3eae798

Browse files
committed
Configure project for the use of https://mycila.carbou.me/license-maven-plugin/#detailed-maven-documentation for license management
1 parent b1488b3 commit 3eae798

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

pom.xml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,42 @@
162162
<version>${jacoco.version}</version>
163163
</plugin>
164164

165+
<!-- License management -->
166+
<plugin>
167+
<groupId>com.mycila</groupId>
168+
<artifactId>license-maven-plugin</artifactId>
169+
<version>4.1</version>
170+
<configuration>
171+
<properties>
172+
<project.name>ecoCode Android plugin</project.name>
173+
<project.description>Provides rules to reduce the environmental footprint of your Android applications</project.description>
174+
<email>[email protected]</email>
175+
<year>2020</year>
176+
</properties>
177+
<licenseSets>
178+
<licenseSet>
179+
<header>com/mycila/maven/plugin/license/templates/GPL-3.txt</header>
180+
<includes>
181+
<include>**/*.java</include>
182+
</includes>
183+
<!-- Exclude CodeNarc files that already have their own copyright -->
184+
<excludes>
185+
<exclude>**/java/org/sonar/plugins/groovy/**</exclude>
186+
<exclude>**/codenarc-converter/**</exclude>
187+
</excludes>
188+
</licenseSet>
189+
</licenseSets>
190+
</configuration>
191+
<executions>
192+
<execution>
193+
<id>validate</id>
194+
<goals>
195+
<goal>check</goal>
196+
</goals>
197+
<phase>validate</phase>
198+
</execution>
199+
</executions>
200+
</plugin>
165201
</plugins>
166202
</pluginManagement>
167203
</build>

0 commit comments

Comments
 (0)