Skip to content

Commit

Permalink
Setup mycila plugin, and normalize all license headers; Resolves #4. (#…
Browse files Browse the repository at this point in the history
…20)

Travis-CI had one check fail during GitHub outage, others cleared. Overriding defaults.
  • Loading branch information
ruebot authored and ianmilligan1 committed Jul 31, 2017
1 parent bb2e665 commit eb0e8a9
Show file tree
Hide file tree
Showing 73 changed files with 426 additions and 132 deletions.
14 changes: 14 additions & 0 deletions LICENSE_HEADER.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Archives Unleashed Toolkit (AUT):
An open-source platform for analyzing web archives.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
38 changes: 38 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<project_name>${project.artifactId}</project_name>
<project_organization>The Archives Unleashed Project</project_organization>
<scala.version>2.10.5</scala.version>
<hadoop.version>2.6.0-cdh5.7.1</hadoop.version>
<spark.version>1.6.0-cdh5.7.1</spark.version>
<github.global.server>github</github.global.server>
<checkstyle.plugin.version>2.15</checkstyle.plugin.version>
<license.plugin.version>2.11</license.plugin.version>
</properties>

<licenses>
Expand Down Expand Up @@ -179,6 +182,41 @@
<check />
</configuration>
</plugin>
<!-- for mycila -->
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>${license.plugin.version}</version>
<configuration>
<header>LICENSE_HEADER.txt</header>
<mapping>
<java>SLASHSTAR_STYLE</java>
</mapping>
<includes>
<include>**/src/main/java/**</include>
<include>**/src/test/java/**</include>
</includes>
<excludes>
<exclude>target/**</exclude>
<exclude>**/src/test/resources/**</exclude>
<exclude>**/src/main/resources/**</exclude>
<exclude>**/*.properties</exclude>
</excludes>
<properties>
<name>${project.artifactId}</name>
<holder>${project.organization.name}</holder>
</properties>
<encoding>UTF-8</encoding>
<strictCheck>true</strictCheck>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/archivesunleashed/data/ArcRecordUtils.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Warcbase: an open-source platform for managing web archives
* Archives Unleashed Toolkit (AUT):
* An open-source platform for analyzing web archives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -13,7 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package io.archivesunleashed.data;

import java.io.BufferedInputStream;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/io/archivesunleashed/data/WarcRecordUtils.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Warcbase: an open-source platform for managing web archives
* Archives Unleashed Toolkit (AUT):
* An open-source platform for analyzing web archives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/io/archivesunleashed/data/package-info.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Warcbase: an open-source platform for managing web archives
* Archives Unleashed Toolkit (AUT):
* An open-source platform for analyzing web archives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/archivesunleashed/io/ArcRecordWritable.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Warcbase: an open-source platform for managing web archives
* Archives Unleashed Toolkit (AUT):
* An open-source platform for analyzing web archives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -13,7 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package io.archivesunleashed.io;

import io.archivesunleashed.data.ArcRecordUtils;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Warcbase: an open-source platform for managing web archives
* Archives Unleashed Toolkit (AUT):
* An open-source platform for analyzing web archives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -13,7 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package io.archivesunleashed.io;

import io.archivesunleashed.data.ArcRecordUtils;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/archivesunleashed/io/WarcRecordWritable.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Warcbase: an open-source platform for managing web archives
* Archives Unleashed Toolkit (AUT):
* An open-source platform for analyzing web archives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -13,7 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package io.archivesunleashed.io;

import io.archivesunleashed.data.WarcRecordUtils;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/io/archivesunleashed/io/package-info.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Warcbase: an open-source platform for managing web archives
* Archives Unleashed Toolkit (AUT):
* An open-source platform for analyzing web archives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Warcbase: an open-source platform for managing web archives
* Archives Unleashed Toolkit (AUT):
* An open-source platform for analyzing web archives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -13,7 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package io.archivesunleashed.mapreduce;

import io.archivesunleashed.io.ArcRecordWritable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Warcbase: an open-source platform for managing web archives
* Archives Unleashed Toolkit (AUT):
* An open-source platform for analyzing web archives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -13,7 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package io.archivesunleashed.mapreduce;

import io.archivesunleashed.io.GenericArchiveRecordWritable.ArchiveFormat;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Warcbase: an open-source platform for managing web archives
* Archives Unleashed Toolkit (AUT):
* An open-source platform for analyzing web archives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -13,7 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package io.archivesunleashed.mapreduce;

import io.archivesunleashed.io.WarcRecordWritable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Warcbase: an open-source platform for managing web archives
* Archives Unleashed Toolkit (AUT):
* An open-source platform for analyzing web archives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Archives Unleashed Toolkit (AUT):
* An open-source platform for analyzing web archives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.archivesunleashed.spark.archive.io

import org.apache.spark.SerializableWritable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Archives Unleashed Toolkit (AUT):
* An open-source platform for analyzing web archives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.archivesunleashed.spark.archive.io

trait ArchiveRecord extends Serializable {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Archives Unleashed Toolkit (AUT):
* An open-source platform for analyzing web archives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.archivesunleashed.spark.archive.io

import java.text.SimpleDateFormat
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Archives Unleashed Toolkit (AUT):
* An open-source platform for analyzing web archives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.archivesunleashed.spark.archive.io

import java.text.SimpleDateFormat
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Archives Unleashed Toolkit (AUT):
* An open-source platform for analyzing web archives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.archivesunleashed.spark.matchbox

import java.io.ByteArrayInputStream
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Archives Unleashed Toolkit (AUT):
* An open-source platform for analyzing web archives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.archivesunleashed.spark.matchbox

import java.security.MessageDigest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Warcbase: an open-source platform for managing web archives
* Archives Unleashed Toolkit (AUT):
* An open-source platform for analyzing web archives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -13,7 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package io.archivesunleashed.spark.matchbox

import org.apache.tika.language.LanguageIdentifier
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Warcbase: an open-source platform for managing web archives
* Archives Unleashed Toolkit (AUT):
* An open-source platform for analyzing web archives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -13,7 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package io.archivesunleashed.spark.matchbox

import java.io.ByteArrayInputStream
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Warcbase: an open-source platform for managing web archives
* Archives Unleashed Toolkit (AUT):
* An open-source platform for analyzing web archives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -13,7 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package io.archivesunleashed.spark.matchbox

object ExtractAtMentions {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Warcbase: an open-source platform for managing web archives
* Archives Unleashed Toolkit (AUT):
* An open-source platform for analyzing web archives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -13,7 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package io.archivesunleashed.spark.matchbox

import java.io.IOException
Expand Down
Loading

0 comments on commit eb0e8a9

Please sign in to comment.