Skip to content

Commit 7172b31

Browse files
committed
Enforce AGPL license declarations
1 parent 8c3b409 commit 7172b31

File tree

2 files changed

+39
-5
lines changed

2 files changed

+39
-5
lines changed

pom.xml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.exist-db</groupId>
88
<artifactId>exist-apps-parent</artifactId>
9-
<version>1.8</version>
9+
<version>1.10.0</version>
1010
<relativePath />
1111
</parent>
1212

@@ -98,6 +98,42 @@
9898
</testResources>
9999

100100
<plugins>
101+
<plugin>
102+
<groupId>com.mycila</groupId>
103+
<artifactId>license-maven-plugin</artifactId>
104+
<version>4.0.rc2</version>
105+
<configuration>
106+
<licenseSets>
107+
<licenseSet>
108+
<header>com/mycila/maven/plugin/license/templates/AGPL-3.txt</header>
109+
<properties>
110+
<owner>${project.organization.name}</owner>
111+
<email>[email protected]</email>
112+
</properties>
113+
<excludes>
114+
<exclude>.clabot</exclude>
115+
<exclude>pom.xml</exclude>
116+
<exclude>xquery-license-style.xml</exclude>
117+
<exclude>src/test/resources-filtered/deploy-xar.xq.xml</exclude>
118+
</excludes>
119+
</licenseSet>
120+
</licenseSets>
121+
<headerDefinitions>
122+
<headerDefinition>xquery-license-style.xml</headerDefinition>
123+
</headerDefinitions>
124+
<mapping>
125+
<xq>xquery_style</xq>
126+
<xqm>xquery_style</xqm>
127+
</mapping>
128+
</configuration>
129+
<executions>
130+
<execution>
131+
<goals>
132+
<goal>check</goal>
133+
</goals>
134+
</execution>
135+
</executions>
136+
</plugin>
101137

102138
<!-- start up Server in Docker for integration-test -->
103139
<plugin>

xquery-license-style.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
<firstLine>(:</firstLine>
55
<beforeEachLine> : </beforeEachLine>
66
<endLine> :)</endLine>
7-
<afterEachLine>EOL</afterEachLine>
8-
<skipLine> </skipLine>
9-
<firstLineDetectionPattern>"(\\s|\\t)*/\\*.*$"</firstLineDetectionPattern>
10-
<lastLineDetectionPattern>".*\\*/(\\s|\\t)*$"</lastLineDetectionPattern>
7+
<firstLineDetectionPattern>(\s|\t)*\(:.*$</firstLineDetectionPattern>
8+
<lastLineDetectionPattern>.*:\)(\s|\t)*$</lastLineDetectionPattern>
119
<allowBlankLines>false</allowBlankLines>
1210
<isMultiline>true</isMultiline>
1311
<padLines>false</padLines>

0 commit comments

Comments
 (0)