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:
parent
db23f72a2a
commit
1bb8864178
|
@ -95,6 +95,13 @@ distribution_archives {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
darwinArm64Tar {
|
||||||
|
archiveClassifier = 'darwin-arm64'
|
||||||
|
content {
|
||||||
|
archiveFiles(modulesFiles('darwin-arm64'), 'tar', 'darwin', 'arm64', true)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
noJdkDarwinTar {
|
noJdkDarwinTar {
|
||||||
archiveClassifier = 'no-jdk-darwin-x64'
|
archiveClassifier = 'no-jdk-darwin-x64'
|
||||||
content {
|
content {
|
||||||
|
@ -102,6 +109,13 @@ distribution_archives {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
noJdkDarwinArm64Tar {
|
||||||
|
archiveClassifier = 'no-jdk-darwin-arm64'
|
||||||
|
content {
|
||||||
|
archiveFiles(modulesFiles('darwin-arm64'), 'tar', 'darwin', 'arm64', false)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
freebsdTar {
|
freebsdTar {
|
||||||
archiveClassifier = 'freebsd-x64'
|
archiveClassifier = 'freebsd-x64'
|
||||||
content {
|
content {
|
||||||
|
|
|
@ -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.
|
|
@ -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.
|
|
@ -280,7 +280,7 @@ configure(subprojects.findAll { ['archives', 'packages'].contains(it.name) }) {
|
||||||
// Setup all required JDKs
|
// Setup all required JDKs
|
||||||
project.jdks {
|
project.jdks {
|
||||||
['darwin', 'linux', 'windows'].each { platform ->
|
['darwin', 'linux', 'windows'].each { platform ->
|
||||||
(platform == 'linux' ? ['x64', 'aarch64'] : ['x64']).each { architecture ->
|
(platform == 'linux' || platform == 'darwin' ? ['x64', 'aarch64'] : ['x64']).each { architecture ->
|
||||||
"bundled_${platform}_${architecture}" {
|
"bundled_${platform}_${architecture}" {
|
||||||
it.platform = platform
|
it.platform = platform
|
||||||
it.version = VersionProperties.getBundledJdk(platform)
|
it.version = VersionProperties.getBundledJdk(platform)
|
||||||
|
@ -353,7 +353,7 @@ configure(subprojects.findAll { ['archives', 'packages'].contains(it.name) }) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
def buildModules = buildModulesTaskProvider
|
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) {
|
if (platform != null) {
|
||||||
excludePlatforms.remove(excludePlatforms.indexOf(platform))
|
excludePlatforms.remove(excludePlatforms.indexOf(platform))
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -234,11 +234,12 @@ public final class Def {
|
||||||
* <p>
|
* <p>
|
||||||
* A dynamic method call for variable {@code x} of type {@code def} looks like:
|
* A dynamic method call for variable {@code x} of type {@code def} looks like:
|
||||||
* {@code x.method(args...)}
|
* {@code x.method(args...)}
|
||||||
|
* </p>
|
||||||
* <p>
|
* <p>
|
||||||
* This method traverses {@code recieverClass}'s class hierarchy (including interfaces)
|
* 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.
|
* 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.
|
* Otherwise it returns a handle to the matching method.
|
||||||
* <p>
|
* </p>
|
||||||
* @param painlessLookup the whitelist
|
* @param painlessLookup the whitelist
|
||||||
* @param functions user defined functions and lambdas
|
* @param functions user defined functions and lambdas
|
||||||
* @param constants available constants to be used if the method has the {@code InjectConstantAnnotation}
|
* @param constants available constants to be used if the method has the {@code InjectConstantAnnotation}
|
||||||
|
@ -468,6 +469,7 @@ public final class Def {
|
||||||
* <p>
|
* <p>
|
||||||
* A dynamic field load for variable {@code x} of type {@code def} looks like:
|
* A dynamic field load for variable {@code x} of type {@code def} looks like:
|
||||||
* {@code y = x.field}
|
* {@code y = x.field}
|
||||||
|
* </p>
|
||||||
* <p>
|
* <p>
|
||||||
* The following field loads are allowed:
|
* The following field loads are allowed:
|
||||||
* <ul>
|
* <ul>
|
||||||
|
@ -482,7 +484,7 @@ public final class Def {
|
||||||
* This method traverses {@code recieverClass}'s class hierarchy (including interfaces)
|
* 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.
|
* 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.
|
* Otherwise it returns a handle to the matching getter.
|
||||||
* <p>
|
* </p>
|
||||||
* @param painlessLookup the whitelist
|
* @param painlessLookup the whitelist
|
||||||
* @param receiverClass Class of the object to retrieve the field from.
|
* @param receiverClass Class of the object to retrieve the field from.
|
||||||
* @param name Name of the field.
|
* @param name Name of the field.
|
||||||
|
@ -537,7 +539,7 @@ public final class Def {
|
||||||
* This method traverses {@code recieverClass}'s class hierarchy (including interfaces)
|
* 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.
|
* 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.
|
* Otherwise it returns a handle to the matching setter.
|
||||||
* <p>
|
* </p>
|
||||||
* @param painlessLookup the whitelist
|
* @param painlessLookup the whitelist
|
||||||
* @param receiverClass Class of the object to retrieve the field from.
|
* @param receiverClass Class of the object to retrieve the field from.
|
||||||
* @param name Name of the field.
|
* @param name Name of the field.
|
||||||
|
|
|
@ -208,10 +208,11 @@ public abstract class Plugin implements Closeable {
|
||||||
* Provides a function to modify index template meta data on startup.
|
* Provides a function to modify index template meta data on startup.
|
||||||
* <p>
|
* <p>
|
||||||
* Plugins should return the input template map via {@link UnaryOperator#identity()} if no upgrade is required.
|
* Plugins should return the input template map via {@link UnaryOperator#identity()} if no upgrade is required.
|
||||||
|
* </p>
|
||||||
* <p>
|
* <p>
|
||||||
* The order of the template upgrader calls is undefined and can change between runs so, it is expected that
|
* 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.
|
* plugins will modify only templates owned by them to avoid conflicts.
|
||||||
* <p>
|
* </p>
|
||||||
* @return Never {@code null}. The same or upgraded {@code IndexTemplateMetadata} map.
|
* @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}
|
* @throws IllegalStateException if the node should not start because at least one {@code IndexTemplateMetadata}
|
||||||
* cannot be upgraded
|
* cannot be upgraded
|
||||||
|
|
|
@ -128,7 +128,7 @@ public abstract class AggregationScript implements ScorerAware {
|
||||||
* <p>
|
* <p>
|
||||||
* The default implementation just calls {@code setNextVar("_value", value)} but
|
* The default implementation just calls {@code setNextVar("_value", value)} but
|
||||||
* some engines might want to handle this differently for better performance.
|
* some engines might want to handle this differently for better performance.
|
||||||
* <p>
|
* </p>
|
||||||
* @param value per-document value, typically a String, Long, or Double
|
* @param value per-document value, typically a String, Long, or Double
|
||||||
*/
|
*/
|
||||||
public void setNextAggregationValue(Object value) {
|
public void setNextAggregationValue(Object value) {
|
||||||
|
|
|
@ -34,6 +34,8 @@ List projects = [
|
||||||
'distribution:archives:windows-zip',
|
'distribution:archives:windows-zip',
|
||||||
'distribution:archives:no-jdk-windows-zip',
|
'distribution:archives:no-jdk-windows-zip',
|
||||||
'distribution:archives:darwin-tar',
|
'distribution:archives:darwin-tar',
|
||||||
|
'distribution:archives:darwin-arm64-tar',
|
||||||
|
'distribution:archives:no-jdk-darwin-arm64-tar',
|
||||||
'distribution:archives:no-jdk-darwin-tar',
|
'distribution:archives:no-jdk-darwin-tar',
|
||||||
'distribution:archives:freebsd-tar',
|
'distribution:archives:freebsd-tar',
|
||||||
'distribution:archives:no-jdk-freebsd-tar',
|
'distribution:archives:no-jdk-freebsd-tar',
|
||||||
|
|
Loading…
Reference in New Issue