mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 13:08:29 +00:00
27c8bcbbd1
This commit introduces aarch64 packaging, including bundling an aarch64 JDK distribution. We had to make some interesting choices here: - ML binaries are not compiled for aarch64, so for now we disable ML on aarch64 - depending on underlying page sizes, we have to disable class data sharing
27 lines
895 B
Groovy
27 lines
895 B
Groovy
import org.elasticsearch.gradle.Architecture
|
|
import org.elasticsearch.gradle.OS
|
|
import org.elasticsearch.gradle.VersionProperties
|
|
import org.elasticsearch.gradle.info.BuildParams
|
|
|
|
apply plugin: 'elasticsearch.jdk-download'
|
|
|
|
jdks {
|
|
provisioned_runtime {
|
|
vendor = VersionProperties.bundledJdkVendor
|
|
version = VersionProperties.getBundledJdk(OS.current().name().toLowerCase())
|
|
platform = OS.current().name().toLowerCase()
|
|
architecture = Architecture.current().name().toLowerCase()
|
|
}
|
|
}
|
|
|
|
configure(allprojects - project(':build-tools')) {
|
|
project.tasks.withType(Test).configureEach { Test test ->
|
|
if (BuildParams.getIsRuntimeJavaHomeSet()) {
|
|
test.executable = "${BuildParams.runtimeJavaHome}/bin/java"
|
|
} else {
|
|
test.dependsOn(rootProject.jdks.provisioned_runtime)
|
|
test.executable = rootProject.jdks.provisioned_runtime.getBinJavaPath()
|
|
}
|
|
}
|
|
}
|