Add darwin-arm64-tar and no-jdk-darwin-arm64-tar archive distributions. (#1668)

* Add darwin-arm64-tar and no-jdk-darwin-arm64-tar archive distributions.

Signed-off-by: Cédric Pelvet <cedric.pelvet@gmail.com>

* Fix dangling HTML tags in javadoc to solve build issues with JDK 17.

Signed-off-by: Cédric Pelvet <cedric.pelvet@gmail.com>
This commit is contained in:
sharp-pixel 2022-01-06 18:39:13 +01:00 committed by GitHub
parent db23f72a2a
commit 1bb8864178
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 52 additions and 7 deletions

View File

@ -95,6 +95,13 @@ distribution_archives {
}
}
darwinArm64Tar {
archiveClassifier = 'darwin-arm64'
content {
archiveFiles(modulesFiles('darwin-arm64'), 'tar', 'darwin', 'arm64', true)
}
}
noJdkDarwinTar {
archiveClassifier = 'no-jdk-darwin-x64'
content {
@ -102,6 +109,13 @@ distribution_archives {
}
}
noJdkDarwinArm64Tar {
archiveClassifier = 'no-jdk-darwin-arm64'
content {
archiveFiles(modulesFiles('darwin-arm64'), 'tar', 'darwin', 'arm64', false)
}
}
freebsdTar {
archiveClassifier = 'freebsd-x64'
content {

View File

@ -0,0 +1,13 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
// This file is intentionally blank. All configuration of the
// distribution is done in the parent project.

View File

@ -0,0 +1,13 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
// This file is intentionally blank. All configuration of the
// distribution is done in the parent project.

View File

@ -280,7 +280,7 @@ configure(subprojects.findAll { ['archives', 'packages'].contains(it.name) }) {
// Setup all required JDKs
project.jdks {
['darwin', 'linux', 'windows'].each { platform ->
(platform == 'linux' ? ['x64', 'aarch64'] : ['x64']).each { architecture ->
(platform == 'linux' || platform == 'darwin' ? ['x64', 'aarch64'] : ['x64']).each { architecture ->
"bundled_${platform}_${architecture}" {
it.platform = platform
it.version = VersionProperties.getBundledJdk(platform)
@ -353,7 +353,7 @@ configure(subprojects.findAll { ['archives', 'packages'].contains(it.name) }) {
}
}
def buildModules = buildModulesTaskProvider
List excludePlatforms = ['darwin-x64', 'freebsd-x64', 'linux-x64', 'linux-arm64', 'windows-x64']
List excludePlatforms = ['darwin-x64', 'freebsd-x64', 'linux-x64', 'linux-arm64', 'windows-x64', 'darwin-arm64']
if (platform != null) {
excludePlatforms.remove(excludePlatforms.indexOf(platform))
} else {

View File

@ -234,11 +234,12 @@ public final class Def {
* <p>
* A dynamic method call for variable {@code x} of type {@code def} looks like:
* {@code x.method(args...)}
* </p>
* <p>
* This method traverses {@code recieverClass}'s class hierarchy (including interfaces)
* until it finds a matching whitelisted method. If one is not found, it throws an exception.
* Otherwise it returns a handle to the matching method.
* <p>
* </p>
* @param painlessLookup the whitelist
* @param functions user defined functions and lambdas
* @param constants available constants to be used if the method has the {@code InjectConstantAnnotation}
@ -468,6 +469,7 @@ public final class Def {
* <p>
* A dynamic field load for variable {@code x} of type {@code def} looks like:
* {@code y = x.field}
* </p>
* <p>
* The following field loads are allowed:
* <ul>
@ -482,7 +484,7 @@ public final class Def {
* This method traverses {@code recieverClass}'s class hierarchy (including interfaces)
* until it finds a matching whitelisted getter. If one is not found, it throws an exception.
* Otherwise it returns a handle to the matching getter.
* <p>
* </p>
* @param painlessLookup the whitelist
* @param receiverClass Class of the object to retrieve the field from.
* @param name Name of the field.
@ -537,7 +539,7 @@ public final class Def {
* This method traverses {@code recieverClass}'s class hierarchy (including interfaces)
* until it finds a matching whitelisted setter. If one is not found, it throws an exception.
* Otherwise it returns a handle to the matching setter.
* <p>
* </p>
* @param painlessLookup the whitelist
* @param receiverClass Class of the object to retrieve the field from.
* @param name Name of the field.

View File

@ -208,10 +208,11 @@ public abstract class Plugin implements Closeable {
* Provides a function to modify index template meta data on startup.
* <p>
* Plugins should return the input template map via {@link UnaryOperator#identity()} if no upgrade is required.
* </p>
* <p>
* The order of the template upgrader calls is undefined and can change between runs so, it is expected that
* plugins will modify only templates owned by them to avoid conflicts.
* <p>
* </p>
* @return Never {@code null}. The same or upgraded {@code IndexTemplateMetadata} map.
* @throws IllegalStateException if the node should not start because at least one {@code IndexTemplateMetadata}
* cannot be upgraded

View File

@ -128,7 +128,7 @@ public abstract class AggregationScript implements ScorerAware {
* <p>
* The default implementation just calls {@code setNextVar("_value", value)} but
* some engines might want to handle this differently for better performance.
* <p>
* </p>
* @param value per-document value, typically a String, Long, or Double
*/
public void setNextAggregationValue(Object value) {

View File

@ -34,6 +34,8 @@ List projects = [
'distribution:archives:windows-zip',
'distribution:archives:no-jdk-windows-zip',
'distribution:archives:darwin-tar',
'distribution:archives:darwin-arm64-tar',
'distribution:archives:no-jdk-darwin-arm64-tar',
'distribution:archives:no-jdk-darwin-tar',
'distribution:archives:freebsd-tar',
'distribution:archives:no-jdk-freebsd-tar',