Skip to content

Commit

Permalink
Added apache-rat plugin and fixed some license headers (apache#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
merlimat authored Jun 26, 2017
1 parent a9a0afc commit 6a84aac
Show file tree
Hide file tree
Showing 24 changed files with 460 additions and 6 deletions.
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
#

language: java C++
jdk:
Expand Down
19 changes: 19 additions & 0 deletions managed-ledger/src/test/resources/log4j.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
#


#
# ManagedLedger Tests Logging Configuration
Expand Down
58 changes: 55 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -553,15 +553,15 @@ flexible messaging model and an intuitive client API.</description>
<exclude>**/proto/*.java</exclude>
<exclude>bin/proto/*</exclude>
<exclude>**/*.patch</exclude>
<exclude>src/test/resources/**</exclude>
<exclude>src/main/resources/**</exclude>
<exclude>data/**</exclude>
<exclude>logs/**</exclude>
<exclude>**/*.versionsBackup</exclude>
<exclude>**/circe/**</exclude>
<exclude>pulsar-client-cpp/lib/checksum/int_types.h</exclude>
<exclude>pulsar-client-cpp/lib/checksum/gf2.hpp</exclude>
<exclude>pulsar-client-cpp/lib/checksum/crc32c*</exclude>
<exclude>pulsar-client-cpp/lib/checksum/crc32c_sse42.cc</exclude>
<exclude>pulsar-client-cpp/lib/checksum/crc32c_sse42.h</exclude>
<exclude>pulsar-client-cpp/lib/checksum/crc32c_sw.cc</exclude>
<exclude>pulsar-client-cpp/lib/lz4/lz4.*</exclude>
<exclude>pulsar-client-cpp/.idea/*</exclude>
<exclude>pulsar-client-cpp/lib/PulsarApi.pb.*</exclude>
Expand All @@ -579,6 +579,7 @@ flexible messaging model and an intuitive client API.</description>
<proto>JAVADOC_STYLE</proto>
<conf>SCRIPT_STYLE</conf>
<ini>SCRIPT_STYLE</ini>
<yaml>SCRIPT_STYLE</yaml>
<cc>JAVADOC_STYLE</cc>
</mapping>
</configuration>
Expand Down Expand Up @@ -606,6 +607,57 @@ flexible messaging model and an intuitive client API.</description>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>0.12</version>
<configuration>
<excludes>
<exclude>target/**</exclude>
<exclude>data/**</exclude>
<exclude>logs/**</exclude>
<exclude>**/test-output/**</exclude>
<exclude>protobuf/LICENSE.protobuf.txt</exclude>
<exclude>**/*.patch</exclude>
<exclude>**/*.md</exclude>
<exclude>**/proto/*.java</exclude>
<exclude>pulsar-client-cpp/lib/PulsarApi.pb.*</exclude>
<exclude>pulsar-client-cpp/**/cmake_install.cmake</exclude>
<exclude>**/*.versionsBackup</exclude>
<exclude>**/.classpath</exclude>
<exclude>**/.project</exclude>
<exclude>**/.settings/*</exclude>
<exclude>**/dependency-reduced-pom.xml</exclude>

<exclude>pulsar-client-cpp/pulsar-cpp.cbp</exclude>
<exclude>pulsar-client-cpp/python/MANIFEST</exclude>
<exclude>pulsar-client-cpp/python/pulsar_client.egg-info/*</exclude>

<!-- Dashboard are exported from grafana -->
<exclude>docker/grafana/dashboards/*.json</exclude>

<!-- LZ4 code is under BSD 2-clause -->
<exclude>pulsar-client-cpp/lib/lz4/lz4.*</exclude>

<exclude>**/META-INF/services/com.scurrilous.circe.HashProvider</exclude>

<exclude>pulsar-client-cpp/.idea/*</exclude>

<exclude>**/CMakeFiles/**</exclude>
<exclude>**/CMakeCache.txt</exclude>
<exclude>*/**/Makefile</exclude>
<exclude>dashboard/django/stats/migrations/*.py</exclude>
<exclude>dashboard/conf/uwsgi_params</exclude>
<exclude>docs/img/pulsar.svg</exclude>

<!-- Exclude certificates used for tests -->
<exclude>**/*.crt</exclude>
<exclude>**/*.key</exclude>
<exclude>**/*.csr</exclude>
<exclude>**/*.json</exclude>
</excludes>
</configuration>
</plugin>
</plugins>

<pluginManagement>
Expand Down
19 changes: 19 additions & 0 deletions pulsar-broker-auth-athenz/src/test/resources/athenz.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
#

{
"zmsUrl": "https://server-zms.athenzcompany.com:4443/",
"ztsUrl": "https://server-zts.athenzcompany.com:4443/",
Expand Down
19 changes: 19 additions & 0 deletions pulsar-broker/src/main/resources/pulsar-broker-version.properties
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
#

version=${pom.version}
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
#

applicationName="pulsar_broker"
zookeeperServers="localhost"
globalZookeeperServers="localhost"
Expand Down
19 changes: 19 additions & 0 deletions pulsar-broker/src/test/resources/log4j.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
#


#
# Pulsar-Broker Tests Logging Configuration
Expand Down
20 changes: 20 additions & 0 deletions pulsar-broker/src/test/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you 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.
-->
<configuration scan="true">
<!--
<logger name="org.apache" level="IN" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*******************************************************************************
* Copyright 2014 Trevor Robinson
*
* 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.
******************************************************************************/

/**
* Provides various implementations of <a
* href="http://en.wikipedia.org/wiki/Cyclic_redundancy_check">cyclic redundancy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*******************************************************************************
* Copyright 2014 Trevor Robinson
*
* 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 com.scurrilous.circe.impl;

import java.nio.ByteBuffer;
Expand All @@ -10,7 +26,7 @@ public interface DirectByteBufferAccess {
/**
* Returns the native memory address of the given direct byte buffer, or 0
* if the buffer is not direct or if obtaining the address is not supported.
*
*
* @param buffer the direct byte buffer for which to obtain the address
* @return the native memory address or 0
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*******************************************************************************
* Copyright 2014 Trevor Robinson
*
* 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.
******************************************************************************/

/**
* Provides support for implementing new {@linkplain
* com.scurrilous.circe.HashProvider hash providers} in the form of abstract
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*******************************************************************************
* Copyright 2014 Trevor Robinson
*
* 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.
******************************************************************************/

/**
* Provides interfaces and minimal support classes for providing and consuming
* various forms of hash functions. The actual hash algorithms are implemented
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*******************************************************************************
* Copyright 2014 Trevor Robinson
*
* 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.
******************************************************************************/

/**
* Defines {@linkplain com.scurrilous.circe.HashParameters hash parameters}
* classes that describe various commonly-used hash functions.
Expand Down
19 changes: 19 additions & 0 deletions pulsar-client-auth-athenz/src/test/resources/athenz.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
#

{
"zmsUrl": "https://server-zms.athenzcompany.com:4443/",
"ztsUrl": "https://server-zts.athenzcompany.com:4443/",
Expand Down
19 changes: 19 additions & 0 deletions pulsar-client-cpp/lib/auth/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
#

add_library(authTls MODULE AuthTls.cc)
target_link_libraries(authTls ${CLIENT_LIBS})
set_target_properties(authTls PROPERTIES OUTPUT_NAME authtls)
Loading

0 comments on commit 6a84aac

Please sign in to comment.