Skip to content

Commit 1bb8864

Browse files
authoredJan 6, 2022
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>
1 parent db23f72 commit 1bb8864

File tree

8 files changed

+52
-7
lines changed

8 files changed

+52
-7
lines changed
 

‎distribution/archives/build.gradle

+14
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,27 @@ distribution_archives {
9595
}
9696
}
9797

98+
darwinArm64Tar {
99+
archiveClassifier = 'darwin-arm64'
100+
content {
101+
archiveFiles(modulesFiles('darwin-arm64'), 'tar', 'darwin', 'arm64', true)
102+
}
103+
}
104+
98105
noJdkDarwinTar {
99106
archiveClassifier = 'no-jdk-darwin-x64'
100107
content {
101108
archiveFiles(modulesFiles('darwin-x64'), 'tar', 'darwin', 'x64', false)
102109
}
103110
}
104111

112+
noJdkDarwinArm64Tar {
113+
archiveClassifier = 'no-jdk-darwin-arm64'
114+
content {
115+
archiveFiles(modulesFiles('darwin-arm64'), 'tar', 'darwin', 'arm64', false)
116+
}
117+
}
118+
105119
freebsdTar {
106120
archiveClassifier = 'freebsd-x64'
107121
content {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
12+
// This file is intentionally blank. All configuration of the
13+
// distribution is done in the parent project.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
12+
// This file is intentionally blank. All configuration of the
13+
// distribution is done in the parent project.

‎distribution/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ configure(subprojects.findAll { ['archives', 'packages'].contains(it.name) }) {
280280
// Setup all required JDKs
281281
project.jdks {
282282
['darwin', 'linux', 'windows'].each { platform ->
283-
(platform == 'linux' ? ['x64', 'aarch64'] : ['x64']).each { architecture ->
283+
(platform == 'linux' || platform == 'darwin' ? ['x64', 'aarch64'] : ['x64']).each { architecture ->
284284
"bundled_${platform}_${architecture}" {
285285
it.platform = platform
286286
it.version = VersionProperties.getBundledJdk(platform)
@@ -353,7 +353,7 @@ configure(subprojects.findAll { ['archives', 'packages'].contains(it.name) }) {
353353
}
354354
}
355355
def buildModules = buildModulesTaskProvider
356-
List excludePlatforms = ['darwin-x64', 'freebsd-x64', 'linux-x64', 'linux-arm64', 'windows-x64']
356+
List excludePlatforms = ['darwin-x64', 'freebsd-x64', 'linux-x64', 'linux-arm64', 'windows-x64', 'darwin-arm64']
357357
if (platform != null) {
358358
excludePlatforms.remove(excludePlatforms.indexOf(platform))
359359
} else {

‎modules/lang-painless/src/main/java/org/opensearch/painless/Def.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,12 @@ static MethodHandle arrayLengthGetter(Class<?> arrayType) {
234234
* <p>
235235
* A dynamic method call for variable {@code x} of type {@code def} looks like:
236236
* {@code x.method(args...)}
237+
* </p>
237238
* <p>
238239
* This method traverses {@code recieverClass}'s class hierarchy (including interfaces)
239240
* until it finds a matching whitelisted method. If one is not found, it throws an exception.
240241
* Otherwise it returns a handle to the matching method.
241-
* <p>
242+
* </p>
242243
* @param painlessLookup the whitelist
243244
* @param functions user defined functions and lambdas
244245
* @param constants available constants to be used if the method has the {@code InjectConstantAnnotation}
@@ -468,6 +469,7 @@ private static MethodHandle lookupReferenceInternal(
468469
* <p>
469470
* A dynamic field load for variable {@code x} of type {@code def} looks like:
470471
* {@code y = x.field}
472+
* </p>
471473
* <p>
472474
* The following field loads are allowed:
473475
* <ul>
@@ -482,7 +484,7 @@ private static MethodHandle lookupReferenceInternal(
482484
* This method traverses {@code recieverClass}'s class hierarchy (including interfaces)
483485
* until it finds a matching whitelisted getter. If one is not found, it throws an exception.
484486
* Otherwise it returns a handle to the matching getter.
485-
* <p>
487+
* </p>
486488
* @param painlessLookup the whitelist
487489
* @param receiverClass Class of the object to retrieve the field from.
488490
* @param name Name of the field.
@@ -537,7 +539,7 @@ static MethodHandle lookupGetter(PainlessLookup painlessLookup, Class<?> receive
537539
* This method traverses {@code recieverClass}'s class hierarchy (including interfaces)
538540
* until it finds a matching whitelisted setter. If one is not found, it throws an exception.
539541
* Otherwise it returns a handle to the matching setter.
540-
* <p>
542+
* </p>
541543
* @param painlessLookup the whitelist
542544
* @param receiverClass Class of the object to retrieve the field from.
543545
* @param name Name of the field.

‎server/src/main/java/org/opensearch/plugins/Plugin.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,11 @@ public List<SettingUpgrader<?>> getSettingUpgraders() {
208208
* Provides a function to modify index template meta data on startup.
209209
* <p>
210210
* Plugins should return the input template map via {@link UnaryOperator#identity()} if no upgrade is required.
211+
* </p>
211212
* <p>
212213
* The order of the template upgrader calls is undefined and can change between runs so, it is expected that
213214
* plugins will modify only templates owned by them to avoid conflicts.
214-
* <p>
215+
* </p>
215216
* @return Never {@code null}. The same or upgraded {@code IndexTemplateMetadata} map.
216217
* @throws IllegalStateException if the node should not start because at least one {@code IndexTemplateMetadata}
217218
* cannot be upgraded

‎server/src/main/java/org/opensearch/script/AggregationScript.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public void setScorer(Scorable scorer) {
128128
* <p>
129129
* The default implementation just calls {@code setNextVar("_value", value)} but
130130
* some engines might want to handle this differently for better performance.
131-
* <p>
131+
* </p>
132132
* @param value per-document value, typically a String, Long, or Double
133133
*/
134134
public void setNextAggregationValue(Object value) {

‎settings.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ List projects = [
3434
'distribution:archives:windows-zip',
3535
'distribution:archives:no-jdk-windows-zip',
3636
'distribution:archives:darwin-tar',
37+
'distribution:archives:darwin-arm64-tar',
38+
'distribution:archives:no-jdk-darwin-arm64-tar',
3739
'distribution:archives:no-jdk-darwin-tar',
3840
'distribution:archives:freebsd-tar',
3941
'distribution:archives:no-jdk-freebsd-tar',

0 commit comments

Comments
 (0)
Please sign in to comment.