Skip to content

Commit 9168f1f

Browse files
authored
[License] Add SPDX and OpenSearch Modification license header (opensearch-project#509)
This commit adds the SPDX Apache-2.0 license header along with an additional copyright header for all modifications. Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
1 parent 8f4b2d5 commit 9168f1f

File tree

7,844 files changed

+101434
-38
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

7,844 files changed

+101434
-38
lines changed

.ci/java-versions.properties

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
#
2+
# SPDX-License-Identifier: Apache-2.0
3+
#
4+
# The OpenSearch Contributors require contributions made to
5+
# this file be licensed under the Apache-2.0 license or a
6+
# compatible open source license.
7+
#
8+
# Modifications Copyright OpenSearch Contributors. See
9+
# GitHub history for details.
10+
#
11+
112
# This .properties file defines the versions of Java with which to
213
# build and test OpenSearch for this branch. Valid Java versions
314
# are 'java' or 'openjdk' followed by the major release number.

benchmarks/build.gradle

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
import org.opensearch.gradle.info.BuildParams
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*
8+
* Modifications Copyright OpenSearch Contributors. See
9+
* GitHub history for details.
10+
*/
211

312
/*
413
* Licensed to Elasticsearch under one or more contributor
@@ -19,6 +28,8 @@ import org.opensearch.gradle.info.BuildParams
1928
* under the License.
2029
*/
2130

31+
import org.opensearch.gradle.info.BuildParams
32+
2233
apply plugin: 'opensearch.build'
2334
apply plugin: 'application'
2435
mainClassName = 'org.openjdk.jmh.Main'

benchmarks/src/main/java/org/opensearch/benchmark/fs/AvailableIndexFoldersBenchmark.java

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*/
8+
19
/*
210
* Licensed to Elasticsearch under one or more contributor
311
* license agreements. See the NOTICE file distributed with
@@ -16,6 +24,11 @@
1624
* specific language governing permissions and limitations
1725
* under the License.
1826
*/
27+
/*
28+
* Modifications Copyright OpenSearch Contributors. See
29+
* GitHub history for details.
30+
*/
31+
1932
package org.opensearch.benchmark.fs;
2033

2134
import org.opensearch.common.logging.LogConfigurator;

benchmarks/src/main/java/org/opensearch/benchmark/indices/breaker/MemoryStatsBenchmark.java

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*/
8+
19
/*
210
* Licensed to Elasticsearch under one or more contributor
311
* license agreements. See the NOTICE file distributed with
@@ -16,6 +24,11 @@
1624
* specific language governing permissions and limitations
1725
* under the License.
1826
*/
27+
/*
28+
* Modifications Copyright OpenSearch Contributors. See
29+
* GitHub history for details.
30+
*/
31+
1932
package org.opensearch.benchmark.indices.breaker;
2033

2134
import org.openjdk.jmh.annotations.Benchmark;

benchmarks/src/main/java/org/opensearch/benchmark/routing/allocation/AllocationBenchmark.java

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*/
8+
19
/*
210
* Licensed to Elasticsearch under one or more contributor
311
* license agreements. See the NOTICE file distributed with
@@ -16,6 +24,11 @@
1624
* specific language governing permissions and limitations
1725
* under the License.
1826
*/
27+
/*
28+
* Modifications Copyright OpenSearch Contributors. See
29+
* GitHub history for details.
30+
*/
31+
1932
package org.opensearch.benchmark.routing.allocation;
2033

2134
import org.opensearch.Version;

benchmarks/src/main/java/org/opensearch/benchmark/routing/allocation/Allocators.java

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*/
8+
19
/*
210
* Licensed to Elasticsearch under one or more contributor
311
* license agreements. See the NOTICE file distributed with
@@ -16,6 +24,11 @@
1624
* specific language governing permissions and limitations
1725
* under the License.
1826
*/
27+
/*
28+
* Modifications Copyright OpenSearch Contributors. See
29+
* GitHub history for details.
30+
*/
31+
1932
package org.opensearch.benchmark.routing.allocation;
2033

2134
import org.opensearch.Version;

benchmarks/src/main/java/org/opensearch/benchmark/search/aggregations/TermsReduceBenchmark.java

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*/
8+
19
/*
210
* Licensed to Elasticsearch under one or more contributor
311
* license agreements. See the NOTICE file distributed with
@@ -16,6 +24,11 @@
1624
* specific language governing permissions and limitations
1725
* under the License.
1826
*/
27+
/*
28+
* Modifications Copyright OpenSearch Contributors. See
29+
* GitHub history for details.
30+
*/
31+
1932
package org.opensearch.benchmark.search.aggregations;
2033

2134
import org.apache.lucene.search.ScoreDoc;

benchmarks/src/main/java/org/opensearch/benchmark/search/aggregations/bucket/terms/LongKeyedBucketOrdsBenchmark.java

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*/
8+
19
/*
210
* Licensed to Elasticsearch under one or more contributor
311
* license agreements. See the NOTICE file distributed with
@@ -17,6 +25,11 @@
1725
* under the License.
1826
*/
1927

28+
/*
29+
* Modifications Copyright OpenSearch Contributors. See
30+
* GitHub history for details.
31+
*/
32+
2033
package org.opensearch.benchmark.search.aggregations.bucket.terms;
2134

2235
import org.opensearch.common.settings.Settings;

benchmarks/src/main/java/org/opensearch/benchmark/search/aggregations/bucket/terms/StringTermsSerializationBenchmark.java

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*/
8+
19
/*
210
* Licensed to Elasticsearch under one or more contributor
311
* license agreements. See the NOTICE file distributed with
@@ -17,6 +25,11 @@
1725
* under the License.
1826
*/
1927

28+
/*
29+
* Modifications Copyright OpenSearch Contributors. See
30+
* GitHub history for details.
31+
*/
32+
2033
package org.opensearch.benchmark.search.aggregations.bucket.terms;
2134

2235
import org.apache.lucene.util.BytesRef;

benchmarks/src/main/java/org/opensearch/benchmark/time/DateFormatterBenchmark.java

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*/
8+
19
/*
210
* Licensed to Elasticsearch under one or more contributor
311
* license agreements. See the NOTICE file distributed with
@@ -16,6 +24,11 @@
1624
* specific language governing permissions and limitations
1725
* under the License.
1826
*/
27+
/*
28+
* Modifications Copyright OpenSearch Contributors. See
29+
* GitHub history for details.
30+
*/
31+
1932
package org.opensearch.benchmark.time;
2033

2134
import org.opensearch.common.joda.Joda;

benchmarks/src/main/java/org/opensearch/benchmark/time/DateFormatterFromBenchmark.java

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*/
8+
19
/*
210
* Licensed to Elasticsearch under one or more contributor
311
* license agreements. See the NOTICE file distributed with
@@ -16,6 +24,11 @@
1624
* specific language governing permissions and limitations
1725
* under the License.
1826
*/
27+
/*
28+
* Modifications Copyright OpenSearch Contributors. See
29+
* GitHub history for details.
30+
*/
31+
1932
package org.opensearch.benchmark.time;
2033

2134
import org.opensearch.common.time.DateFormatter;

benchmarks/src/main/java/org/opensearch/benchmark/time/RoundingBenchmark.java

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*/
8+
19
/*
210
* Licensed to Elasticsearch under one or more contributor
311
* license agreements. See the NOTICE file distributed with
@@ -16,6 +24,11 @@
1624
* specific language governing permissions and limitations
1725
* under the License.
1826
*/
27+
/*
28+
* Modifications Copyright OpenSearch Contributors. See
29+
* GitHub history for details.
30+
*/
31+
1932
package org.opensearch.benchmark.time;
2033

2134
import org.opensearch.common.Rounding;

benchmarks/src/main/java/org/opensearch/common/RoundingBenchmark.java

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*/
8+
19
/*
210
* Licensed to Elasticsearch under one or more contributor
311
* license agreements. See the NOTICE file distributed with
@@ -17,6 +25,11 @@
1725
* under the License.
1826
*/
1927

28+
/*
29+
* Modifications Copyright OpenSearch Contributors. See
30+
* GitHub history for details.
31+
*/
32+
2033
package org.opensearch.common;
2134

2235
import org.opensearch.common.time.DateFormatter;

benchmarks/src/main/resources/log4j2.properties

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
#
2+
# SPDX-License-Identifier: Apache-2.0
3+
#
4+
# The OpenSearch Contributors require contributions made to
5+
# this file be licensed under the Apache-2.0 license or a
6+
# compatible open source license.
7+
#
8+
# Modifications Copyright OpenSearch Contributors. See
9+
# GitHub history for details.
10+
#
11+
112
appender.console.type = Console
213
appender.console.name = console
314
appender.console.layout.type = PatternLayout

build.gradle

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*
8+
* Modifications Copyright OpenSearch Contributors. See
9+
* GitHub history for details.
10+
*/
11+
112
/*
213
* Licensed to Elasticsearch under one or more contributor
314
* license agreements. See the NOTICE file distributed with

buildSrc/build.gradle

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*
8+
* Modifications Copyright OpenSearch Contributors. See
9+
* GitHub history for details.
10+
*/
11+
112
/*
213
* Licensed to Elasticsearch under one or more contributor
314
* license agreements. See the NOTICE file distributed with

buildSrc/reaper/build.gradle

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*
8+
* Modifications Copyright OpenSearch Contributors. See
9+
* GitHub history for details.
10+
*/
11+
112
apply plugin: 'java'
213

314
jar {

buildSrc/reaper/src/main/java/org/opensearch/gradle/reaper/Reaper.java

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*/
8+
19
/*
210
* Licensed to Elasticsearch under one or more contributor
311
* license agreements. See the NOTICE file distributed with
@@ -17,6 +25,11 @@
1725
* under the License.
1826
*/
1927

28+
/*
29+
* Modifications Copyright OpenSearch Contributors. See
30+
* GitHub history for details.
31+
*/
32+
2033
package org.opensearch.gradle.reaper;
2134

2235
import java.io.Closeable;

buildSrc/settings.gradle

+11
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*
8+
* Modifications Copyright OpenSearch Contributors. See
9+
* GitHub history for details.
10+
*/
11+
112
include 'reaper'

0 commit comments

Comments
 (0)