Added update header plugin to community repo

This commit is contained in:
Roy Wetherall
2016-03-01 10:58:56 +11:00
parent 10b3e028e2
commit 201d542c1a
6 changed files with 51 additions and 12 deletions

View File

@@ -0,0 +1,12 @@
Alfresco is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Alfresco is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.

View File

@@ -0,0 +1 @@
Just put something in here!!

1
license/description.ftl Normal file
View File

@@ -0,0 +1 @@
This file is part of Alfresco.

View File

@@ -0,0 +1,2 @@
alfresco_community=Alfresco Community
alfresco_enterprise=Alfresco Enterprise

View File

@@ -94,6 +94,12 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<argLine>-Xmx1024m -XX:MaxPermSize=256m -Duser.language=en -Dcom.sun.management.jmxremote</argLine>
<!-- license properties -->
<license.org.name>Alfresco Software Limited</license.org.name>
<license.update.dryrun>true</license.update.dryrun>
<license.verbose>false</license.verbose>
</properties>
<build>

View File

@@ -232,8 +232,34 @@
<artifactId>license-maven-plugin</artifactId>
<version>1.8</version>
<configuration>
<verbose>false</verbose>
<addSvnKeyWords>false</addSvnKeyWords>
<verbose>${license.verbose}</verbose>
<addSvnKeyWords>false</addSvnKeyWords>
<!-- header configuration -->
<organizationName>${license.org.name}</organizationName>
<descriptionTemplate>${project.parent.parent.basedir}/license/description.ftl</descriptionTemplate>
<canUpdateCopyright>true</canUpdateCopyright>
<canUpdateDescription>true</canUpdateDescription>
<!-- licence configuration -->
<addJavaLicenseAfterPackage>true</addJavaLicenseAfterPackage>
<licenseName>alfresco_community</licenseName>
<licenseResolver>file:/${project.parent.parent.basedir}/license</licenseResolver>
<!-- dry run options -->
<dryRun>${license.update.dryrun}</dryRun>
<failOnMissingHeader>true</failOnMissingHeader>
<failOnNotUptodateHeader>true</failOnNotUptodateHeader>
<!-- source roots to check -->
<roots>
<root>source</root>
<root>test</root>
<root>unit-test</root>
<root>config</root>
</roots>
</configuration>
<executions>
<execution>
@@ -242,15 +268,6 @@
<goal>update-file-header</goal>
</goals>
<phase>process-sources</phase>
<configuration>
<licenseName>gpl_v3</licenseName>
<roots>
<root>source</root>
<root>test</root>
<root>unit-test</root>
<root>config</root>
</roots>
</configuration>
</execution>
</executions>
</plugin>
@@ -289,7 +306,7 @@
</goals>
</pluginExecutionFilter>
<action>
<execute></execute>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>