mirror of https://github.com/apache/lucene.git
Merge branch 'master' of https://gitbox.apache.org/repos/asf/lucene-solr
This commit is contained in:
commit
e2003029e3
22
README.md
22
README.md
|
@ -36,12 +36,20 @@ comprehensive documentation, visit:
|
|||
- Lucene: <http://lucene.apache.org/core/documentation.html>
|
||||
- Solr: <http://lucene.apache.org/solr/guide/>
|
||||
|
||||
## Building Lucene/Solr
|
||||
## Building with Gradle
|
||||
|
||||
(You do not need to do this if you downloaded a pre-built package)
|
||||
### Building Lucene
|
||||
|
||||
See [lucene/BUILD.md](./lucene/BUILD.md).
|
||||
|
||||
### Building with Gradle
|
||||
### Building Solr
|
||||
|
||||
Firstly, you need to set up your development environment (OpenJDK 11 or greater).
|
||||
|
||||
We'll assume that you know how to get and set up the JDK - if you
|
||||
don't, then we suggest starting at https://www.oracle.com/java/ and learning
|
||||
more about Java, before returning to this README. Solr runs with
|
||||
Java 11 and later.
|
||||
|
||||
As of 9.0, Lucene/Solr uses [Gradle](https://gradle.org/) as the build
|
||||
system. Ant build support has been removed.
|
||||
|
@ -50,6 +58,12 @@ To build Lucene and Solr, run (`./` can be omitted on Windows):
|
|||
|
||||
`./gradlew assemble`
|
||||
|
||||
NOTE: DO NOT use `gradle` command that is already installed on your machine (unless you know what you'll do).
|
||||
The "gradle wrapper" (gradlew) does the job - downloads the correct version of it, setups necessary configurations.
|
||||
|
||||
The first time you run Gradle, it will create a file "gradle.properties" that
|
||||
contains machine-specific settings. Normally you can use this file as-is, but it
|
||||
can be modified if necessary.
|
||||
|
||||
The command above packages a full distribution of Solr server; the
|
||||
package can be located at:
|
||||
|
@ -65,6 +79,8 @@ For development, especially when you have created test indexes etc, use
|
|||
the `./gradlew dev` task which will copy binaries to `./solr/packaging/build/dev`
|
||||
but _only_ overwrite the binaries which will preserve your test setup.
|
||||
|
||||
If you want to build the documentation, type `./gradlew -p solr documentation`.
|
||||
|
||||
## Running Solr
|
||||
|
||||
After [building Solr](#building-lucene-solr), the server can be started using
|
||||
|
|
|
@ -24,6 +24,7 @@ plugins {
|
|||
id "org.owasp.dependencycheck" version "5.3.0"
|
||||
id 'de.thetaphi.forbiddenapis' version '3.0.1' apply false
|
||||
id "de.undercouch.download" version "4.0.2" apply false
|
||||
id "net.ltgt.errorprone" version "1.2.1" apply false
|
||||
}
|
||||
|
||||
apply from: file('gradle/defaults.gradle')
|
||||
|
@ -127,6 +128,7 @@ apply from: file('gradle/ide/intellij-idea.gradle')
|
|||
apply from: file('gradle/ide/eclipse.gradle')
|
||||
|
||||
// Validation tasks
|
||||
apply from: file('gradle/validation/error-prone.gradle')
|
||||
apply from: file('gradle/validation/precommit.gradle')
|
||||
apply from: file('gradle/validation/forbidden-apis.gradle')
|
||||
apply from: file('gradle/validation/jar-checks.gradle')
|
||||
|
|
|
@ -52,8 +52,11 @@ allprojects {
|
|||
"-Xdoclint:-missing",
|
||||
"-Xdoclint:-accessibility",
|
||||
"-proc:none", // proc:none was added because of LOG4J2-1925 / JDK-8186647
|
||||
"-Werror",
|
||||
]
|
||||
|
||||
if (propertyOrDefault("javac.failOnWarnings", true).toBoolean()) {
|
||||
options.compilerArgs += "-Werror"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,13 +16,14 @@
|
|||
*/
|
||||
|
||||
// See LUCENE-9411. This hack adds compile-time only dependencies
|
||||
// on findbugs annotations. Otherwise javac generates odd warnings about missing
|
||||
// on findbugs and error_prone annotations. Otherwise javac generates odd warnings about missing
|
||||
// type information.
|
||||
|
||||
configure([project(":solr:core"),
|
||||
project(":solr:solrj"),
|
||||
project(":solr:contrib:prometheus-exporter"),
|
||||
project(":solr:test-framework")]) {
|
||||
project(":solr:test-framework"),
|
||||
project(":solr:contrib:analytics")]) {
|
||||
plugins.withType(JavaPlugin) {
|
||||
dependencies {
|
||||
// Use versionless variants because these libraries are in versions.lock.
|
||||
|
|
|
@ -46,10 +46,13 @@ configure(rootProject) {
|
|||
println ""
|
||||
println "This is an experimental Lucene/Solr gradle build. See some"
|
||||
println "guidelines, ant-equivalent commands etc. under help/*; or type:"
|
||||
println ""
|
||||
helpFiles.each { section, path, sectionInfo ->
|
||||
println String.format(Locale.ROOT,
|
||||
" gradlew :help%-16s # %s", section, sectionInfo)
|
||||
}
|
||||
println ""
|
||||
println "For the impatient, build the project with 'gradlew assemble' or 'gradlew dev' "
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,149 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
allprojects { prj ->
|
||||
plugins.withType(JavaPlugin) {
|
||||
prj.apply plugin: 'net.ltgt.errorprone'
|
||||
|
||||
dependencies {
|
||||
errorprone("com.google.errorprone:error_prone_core")
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile) { task ->
|
||||
options.errorprone.disableWarningsInGeneratedCode = true
|
||||
options.errorprone.errorproneArgs = [
|
||||
// test
|
||||
'-Xep:ExtendingJUnitAssert:OFF',
|
||||
'-Xep:UseCorrectAssertInTests:OFF',
|
||||
'-Xep:DefaultPackage:OFF',
|
||||
'-Xep:FloatingPointLiteralPrecision:OFF',
|
||||
'-Xep:CatchFail:OFF',
|
||||
'-Xep:TryFailThrowable:OFF',
|
||||
'-Xep:MathAbsoluteRandom:OFF',
|
||||
'-Xep:AssertionFailureIgnored:OFF',
|
||||
'-Xep:JUnit4TestNotRun:OFF',
|
||||
'-Xep:FallThrough:OFF',
|
||||
'-Xep:CatchAndPrintStackTrace:OFF',
|
||||
'-Xep:ToStringReturnsNull:OFF',
|
||||
'-Xep:ArrayAsKeyOfSetOrMap:OFF',
|
||||
'-Xep:StaticAssignmentInConstructor:OFF',
|
||||
'-Xep:SelfAssignment:OFF',
|
||||
'-Xep:InvalidPatternSyntax:OFF',
|
||||
'-Xep:MissingFail:OFF',
|
||||
'-Xep:LossyPrimitiveCompare:OFF',
|
||||
'-Xep:ComparableType:OFF',
|
||||
'-Xep:InfiniteRecursion:OFF',
|
||||
'-Xep:MisusedDayOfYear:OFF',
|
||||
'-Xep:FloatingPointAssertionWithinEpsilon:OFF',
|
||||
|
||||
'-Xep:ThrowNull:OFF',
|
||||
'-Xep:StaticGuardedByInstance:OFF',
|
||||
'-Xep:ArrayHashCode:OFF',
|
||||
'-Xep:ArrayEquals:OFF',
|
||||
'-Xep:IdentityBinaryExpression:OFF',
|
||||
'-Xep:ComplexBooleanConstant:OFF',
|
||||
'-Xep:ComplexBooleanConstant:OFF',
|
||||
'-Xep:StreamResourceLeak:OFF',
|
||||
'-Xep:UnnecessaryLambda:OFF',
|
||||
'-Xep:ObjectToString:OFF',
|
||||
'-Xep:URLEqualsHashCode:OFF',
|
||||
'-Xep:DoubleBraceInitialization:OFF',
|
||||
'-Xep:ShortCircuitBoolean:OFF',
|
||||
'-Xep:InputStreamSlowMultibyteRead:OFF',
|
||||
'-Xep:NonCanonicalType:OFF',
|
||||
'-Xep:CollectionIncompatibleType:OFF',
|
||||
'-Xep:TypeParameterShadowing:OFF',
|
||||
'-Xep:ThreadJoinLoop:OFF',
|
||||
'-Xep:MutableConstantField:OFF',
|
||||
'-Xep:ReturnValueIgnored:OFF',
|
||||
'-Xep:CollectionIncompatibleType:OFF',
|
||||
'-Xep:SameNameButDifferent:OFF',
|
||||
'-Xep:InvalidParam:OFF',
|
||||
'-Xep:CompareToZero:OFF',
|
||||
'-Xep:DoubleCheckedLocking:OFF',
|
||||
'-Xep:BadShiftAmount:OFF',
|
||||
'-Xep:CollectionUndefinedEquality:OFF',
|
||||
'-Xep:UnescapedEntity:OFF',
|
||||
'-Xep:BoxedPrimitiveEquality:OFF',
|
||||
'-Xep:LogicalAssignment:OFF',
|
||||
'-Xep:DoubleCheckedLocking:OFF',
|
||||
'-Xep:AmbiguousMethodReference:OFF',
|
||||
'-Xep:FormatString:OFF',
|
||||
'-Xep:InstanceOfAndCastMatchWrongType:OFF',
|
||||
'-Xep:ModifyCollectionInEnhancedForLoop:OFF',
|
||||
'-Xep:JavaLangClash:OFF',
|
||||
'-Xep:TypeParameterUnusedInFormals:OFF',
|
||||
'-Xep:UnusedNestedClass:OFF',
|
||||
'-Xep:OverrideThrowableToString:OFF',
|
||||
'-Xep:FutureReturnValueIgnored:OFF',
|
||||
'-Xep:BadInstanceof:OFF',
|
||||
'-Xep:UnusedNestedClass:OFF',
|
||||
'-Xep:OverrideThrowableToString:OFF',
|
||||
'-Xep:EqualsIncompatibleType:OFF',
|
||||
'-Xep:ByteBufferBackingArray:OFF',
|
||||
'-Xep:ByteBufferBackingArray:OFF',
|
||||
'-Xep:UnusedMethod:OFF',
|
||||
'-Xep:ObjectsHashCodePrimitive:OFF',
|
||||
'-Xep:ObjectsHashCodePrimitive:OFF',
|
||||
'-Xep:UnnecessaryAnonymousClass:OFF',
|
||||
'-Xep:BoxedPrimitiveConstructor:OFF',
|
||||
'-Xep:ArgumentSelectionDefectChecker:OFF',
|
||||
'-Xep:StringSplitter:OFF',
|
||||
'-Xep:MixedMutabilityReturnType:OFF',
|
||||
'-Xep:EqualsUnsafeCast:OFF',
|
||||
'-Xep:OperatorPrecedence:OFF',
|
||||
'-Xep:HidingField:OFF',
|
||||
'-Xep:ThreadPriorityCheck:OFF',
|
||||
'-Xep:InlineFormatString:OFF',
|
||||
'-Xep:EqualsUnsafeCast:OFF',
|
||||
'-Xep:UnsynchronizedOverridesSynchronized:OFF',
|
||||
'-Xep:OperatorPrecedence:OFF',
|
||||
'-Xep:ArrayToString:OFF',
|
||||
'-Xep:ClassCanBeStatic:OFF',
|
||||
'-Xep:InvalidInlineTag:OFF',
|
||||
'-Xep:EmptyCatch:OFF',
|
||||
'-Xep:UnnecessaryParentheses:OFF',
|
||||
'-Xep:AlmostJavadoc:OFF',
|
||||
'-Xep:Finally:OFF',
|
||||
'-Xep:ImmutableEnumChecker:OFF',
|
||||
'-Xep:NonAtomicVolatileUpdate:OFF',
|
||||
'-Xep:MutablePublicArray:OFF',
|
||||
'-Xep:LockNotBeforeTry:OFF',
|
||||
'-Xep:WaitNotInLoop:OFF',
|
||||
'-Xep:UndefinedEquals:OFF',
|
||||
'-Xep:JdkObsolete:OFF',
|
||||
'-Xep:NarrowingCompoundAssignment:OFF',
|
||||
'-Xep:InconsistentCapitalization:OFF',
|
||||
'-Xep:IntLongMath:OFF',
|
||||
'-Xep:SynchronizeOnNonFinalField:OFF',
|
||||
'-Xep:ThreadLocalUsage:OFF',
|
||||
'-Xep:ProtectedMembersInFinalClass:OFF',
|
||||
'-Xep:BadImport:OFF',
|
||||
'-Xep:InconsistentHashCode:OFF',
|
||||
'-Xep:MissingOverride:OFF',
|
||||
'-Xep:EqualsGetClass:OFF',
|
||||
'-Xep:PublicConstructorForAbstractClass:OFF',
|
||||
'-Xep:EscapedEntity:OFF',
|
||||
'-Xep:ModifiedButNotUsed:OFF',
|
||||
'-Xep:ReferenceEquality:OFF',
|
||||
'-Xep:InvalidBlockTag:OFF',
|
||||
'-Xep:MissingSummary:OFF',
|
||||
'-Xep:UnusedVariable:OFF'
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -372,16 +372,7 @@ configure(project(":lucene")) {
|
|||
configure(project(":solr")) {
|
||||
checkDanglingLicenseFiles {
|
||||
exclude += [
|
||||
"README.committers.txt",
|
||||
|
||||
// solr-ref-guide compilation-only dependencies.
|
||||
"android-json-*",
|
||||
"ant-*",
|
||||
"asciidoctor-ant-*",
|
||||
"jsoup-*",
|
||||
"junit4-ant-*",
|
||||
"slf4j-simple-*",
|
||||
"start.jar.sha1"
|
||||
"README.committers.txt"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ don't, then we suggest starting at https://www.oracle.com/java/ and learning
|
|||
more about Java, before returning to this README. Lucene runs with
|
||||
Java 11 and later.
|
||||
|
||||
Lucene uses [Gradle](https://gradle.org/) for build control; and includes Gradle wrapper script to download the correct version of it.
|
||||
Lucene uses [Gradle](https://gradle.org/) for build control.
|
||||
|
||||
NOTE: When Solr moves to a Top Level Project, it will no longer
|
||||
be necessary to download Solr to build Lucene. You can track
|
||||
|
@ -24,45 +24,52 @@ progress at: https://issues.apache.org/jira/browse/SOLR-14497
|
|||
NOTE: Lucene changed from Ant to Gradle as of release 9.0. Prior releases
|
||||
still use Ant.
|
||||
|
||||
## Step 1) Download/Checkout Lucene source code
|
||||
## Step 1) Checkout/Download Lucene source code
|
||||
|
||||
We'll assume you already did this, or you wouldn't be reading this
|
||||
file. However, you might have received this file by some alternate
|
||||
route, or you might have an incomplete copy of the Lucene, so: Lucene
|
||||
releases are available as part of Solr for download at:
|
||||
file. However, you might have received this file by some alternate
|
||||
route, or you might have an incomplete copy of the Lucene, so: you
|
||||
can directly checkout the source code from GitHub:
|
||||
|
||||
https://github.com/apache/lucene-solr
|
||||
|
||||
Or Lucene source archives at particlar releases are available as part of Solr downloads:
|
||||
|
||||
https://lucene.apache.org/solr/downloads.html
|
||||
|
||||
See the note above for why it is necessary currently to download Solr
|
||||
|
||||
Download either a zip or a tarred/gzipped version of the archive, and
|
||||
uncompress it into a directory of your choice.
|
||||
|
||||
Or you can directly checkout the source code from GitHub:
|
||||
|
||||
https://github.com/apache/lucene-solr
|
||||
|
||||
## Step 2) From the command line, change (cd) into the top-level directory of your Lucene/Solr installation
|
||||
## Step 2) Change directory (cd) into the top-level directory of the source tree
|
||||
|
||||
The parent directory for both Lucene and Solr contains the base configuration
|
||||
file for the combined build, as well as the "gradle wrapper" (gradlew) that
|
||||
makes invocation of Gradle easier. By default, you do not need to change any of
|
||||
file for the combined build. By default, you do not need to change any of
|
||||
the settings in this file, but you do need to run Gradle from this location so
|
||||
it knows where to find the necessary configurations.
|
||||
|
||||
The first time you run Gradle, it will create a file "gradle.properties" that
|
||||
contains machine-specific settings. Normally you can use this file as-is, but it
|
||||
can be modified if necessary.
|
||||
|
||||
## Step 4) Run Gradle
|
||||
|
||||
Assuming you can exectue "./gradlew help" should show you the main tasks that
|
||||
can be executed to show help sub-topics.
|
||||
|
||||
If you want to build Lucene independent of Solr, type:
|
||||
./gradlew -p lucene assemble
|
||||
|
||||
If you want to build the documentation, type "./gradlew buildSite".
|
||||
```
|
||||
./gradlew -p lucene assemble
|
||||
```
|
||||
|
||||
NOTE: DO NOT use `gradle` command that is already installed on your machine (unless you know what you'll do).
|
||||
The "gradle wrapper" (gradlew) does the job - downloads the correct version of it, setups necessary configurations.
|
||||
|
||||
The first time you run Gradle, it will create a file "gradle.properties" that
|
||||
contains machine-specific settings. Normally you can use this file as-is, but it
|
||||
can be modified if necessary.
|
||||
|
||||
If you want to build the documentation, type:
|
||||
|
||||
```
|
||||
./gradlew -p lucene documentation
|
||||
```
|
||||
|
||||
For further information on Lucene, go to:
|
||||
|
||||
|
|
|
@ -231,6 +231,11 @@ Documentation
|
|||
|
||||
* LUCENE-9424: Add a performance warning to AttributeSource.captureState javadocs (Haoyu Zhai)
|
||||
|
||||
Other
|
||||
---------------------
|
||||
|
||||
* LUCENE-9497: Integrate Error Prone, a static analysis tool during compilation (Dawid Weiss, Varun Thacker)
|
||||
|
||||
|
||||
Other
|
||||
---------------------
|
||||
|
|
|
@ -523,6 +523,7 @@ public class CharArrayMap<V> extends AbstractMap<Object,V> {
|
|||
* @throws NullPointerException
|
||||
* if the given map is <code>null</code>.
|
||||
*/
|
||||
@SuppressWarnings("ReferenceEquality")
|
||||
public static <V> CharArrayMap<V> unmodifiableMap(CharArrayMap<V> map) {
|
||||
if (map == null)
|
||||
throw new NullPointerException("Given map is null");
|
||||
|
|
|
@ -29,7 +29,9 @@ https://lucene.apache.org/solr
|
|||
Getting Started
|
||||
---------------
|
||||
|
||||
To start Solr for the first time after installation, simply do:
|
||||
All the following commands are entered from the "solr" directory which should be just below the install directory
|
||||
|
||||
To start Solr for the first time after installation, simply enter:
|
||||
|
||||
```
|
||||
bin/solr start
|
||||
|
@ -38,20 +40,20 @@ To start Solr for the first time after installation, simply do:
|
|||
This will launch a standalone Solr server in the background of your shell,
|
||||
listening on port 8983. Alternatively, you can launch Solr in "cloud" mode,
|
||||
which allows you to scale out using sharding and replication. To launch Solr
|
||||
in cloud mode, do:
|
||||
in cloud mode, enter:
|
||||
|
||||
```
|
||||
bin/solr start -cloud
|
||||
```
|
||||
|
||||
To see all available options for starting Solr, please do:
|
||||
To see all available options for starting Solr, please enter:
|
||||
|
||||
```
|
||||
bin/solr start -help
|
||||
```
|
||||
|
||||
After starting Solr, create either a core or collection depending on whether
|
||||
Solr is running in standalone (core) or SolrCloud mode (collection) by doing:
|
||||
Solr is running in standalone (core) or SolrCloud mode (collection) by entering:
|
||||
|
||||
```
|
||||
bin/solr create -c <name>
|
||||
|
@ -59,7 +61,7 @@ Solr is running in standalone (core) or SolrCloud mode (collection) by doing:
|
|||
|
||||
This will create a collection that uses a data-driven schema which tries to guess
|
||||
the correct field type when you add documents to the index. To see all available
|
||||
options for creating a new collection, execute:
|
||||
options for creating a new collection, enter:
|
||||
|
||||
```
|
||||
bin/solr create -help
|
||||
|
@ -84,7 +86,7 @@ where more than one Solr is running on the machine.
|
|||
Solr Examples
|
||||
---------------
|
||||
|
||||
Solr includes a few examples to help you get started. To run a specific example, do:
|
||||
Solr includes a few examples to help you get started. To run a specific example, enter:
|
||||
|
||||
```
|
||||
bin/solr -e <EXAMPLE> where <EXAMPLE> is one of:
|
||||
|
@ -94,7 +96,7 @@ Solr includes a few examples to help you get started. To run a specific example,
|
|||
techproducts : Kitchen sink example providing comprehensive examples of Solr features
|
||||
```
|
||||
|
||||
For instance, if you want to run the SolrCloud example, do:
|
||||
For instance, if you want to run the SolrCloud example, enter:
|
||||
|
||||
```
|
||||
bin/solr -e cloud
|
||||
|
@ -175,8 +177,15 @@ Instructions for Building Apache Solr from Source
|
|||
cd to "./solr/packaging/build/solr-9.0.0-SNAPSHOT" and run the bin/solr script
|
||||
to start Solr.
|
||||
|
||||
NOTE: `gradlew` is the "Gradle Wrapper" and will automaticaly download and
|
||||
NOTE: `gradlew` is the "Gradle Wrapper" and will automatically download and
|
||||
start using the correct version of Gradle.
|
||||
|
||||
NOTE: `./gradlew help` will print a list of high-level tasks. There are also a
|
||||
number of plain-text files in <source folder root>/help.
|
||||
|
||||
NOTE: This CWiki page describes getting/building/testing Solr
|
||||
in more detail:
|
||||
`https://cwiki.apache.org/confluence/display/solr/HowToContribute`
|
||||
|
||||
Export control
|
||||
-------------------------------------------------
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
fa26d351fe62a6a17f5cda1287c1c6110dec413f
|
|
@ -1,202 +0,0 @@
|
|||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
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.
|
|
@ -1 +0,0 @@
|
|||
55819a28fc834c2f2bcf4dcdb278524dc3cf088f
|
|
@ -1,21 +0,0 @@
|
|||
The MIT License
|
||||
|
||||
© 2009-2017, Jonathan Hedley <jonathan@hedley.net>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
|
@ -1 +0,0 @@
|
|||
d9841ffd9d794ab26446df2c46a2ab2b8d2a183e
|
|
@ -1 +0,0 @@
|
|||
d5aa7d9c9cb261a9b4c460c918fd972d1a9882ed
|
|
@ -68,6 +68,7 @@ task toDir(type: Sync) {
|
|||
from(project(":solr").projectDir, {
|
||||
include "bin/**"
|
||||
include "licenses/**"
|
||||
exclude "licenses/README.committers.txt"
|
||||
include "CHANGES.txt"
|
||||
include "LICENSE.txt"
|
||||
include "NOTICE.txt"
|
||||
|
|
|
@ -15,7 +15,7 @@ com.github.virtuald:curvesapi:1.06 (1 constraints: db04f530)
|
|||
com.github.zafarkhaja:java-semver:0.9.0 (1 constraints: 0b050636)
|
||||
com.google.code.findbugs:annotations:3.0.1 (1 constraints: 0605fb35)
|
||||
com.google.code.findbugs:jsr305:3.0.2 (2 constraints: cd195721)
|
||||
com.google.errorprone:error_prone_annotations:2.1.3 (1 constraints: 180aebb4)
|
||||
com.google.errorprone:error_prone_annotations:2.4.0 (2 constraints: 1f0fd486)
|
||||
com.google.guava:guava:25.1-jre (1 constraints: 4a06b047)
|
||||
com.google.j2objc:j2objc-annotations:1.1 (1 constraints: b609eba0)
|
||||
com.google.protobuf:protobuf-java:3.11.0 (1 constraints: 3705383b)
|
||||
|
|
|
@ -8,6 +8,7 @@ com.fasterxml.jackson*:*=2.10.1
|
|||
com.github.ben-manes.caffeine:caffeine=2.8.4
|
||||
com.github.virtuald:curvesapi=1.06
|
||||
com.github.zafarkhaja:java-semver=0.9.0
|
||||
com.google.errorprone:*=2.4.0
|
||||
com.google.guava:guava=25.1-jre
|
||||
com.google.protobuf:protobuf-java=3.11.0
|
||||
com.google.re2j:re2j=1.2
|
||||
|
|
Loading…
Reference in New Issue