|
1 | 1 | class Opensearch < Formula
|
2 | 2 | desc "Open source distributed and RESTful search engine"
|
3 | 3 | homepage "https://github.com/opensearch-project/OpenSearch"
|
4 |
| - url "https://github.com/opensearch-project/OpenSearch/archive/refs/tags/2.19.0.tar.gz" |
5 |
| - sha256 "c94e9f793393aa6ff4eb00f0ed0dd18a9f3502d2e1c84f947dad6d5c64f1fe31" |
| 4 | + url "https://github.com/opensearch-project/OpenSearch/archive/refs/tags/2.19.1.tar.gz" |
| 5 | + sha256 "99999a392dcf90bafebfa143ed071b45662fb022dcbcfa77df802248338d3a63" |
6 | 6 | license "Apache-2.0"
|
7 | 7 |
|
8 | 8 | bottle do
|
9 |
| - sha256 cellar: :any_skip_relocation, arm64_sequoia: "8d9bc85686873309e2c833c02b55bbf5e63b089dbcaee566ffd84b10262e1954" |
10 |
| - sha256 cellar: :any_skip_relocation, arm64_sonoma: "bfd6cf96d7dba6abaf0cd69917e9311a8740b04330e243c3f87aec20e48416ab" |
11 |
| - sha256 cellar: :any_skip_relocation, arm64_ventura: "debb7647524b1ca23c9cb4fa0d5a1431e49035baa80f243131154c3b165b8b0f" |
12 |
| - sha256 cellar: :any_skip_relocation, sonoma: "e77aa0a76c1b17743a4be02964eb0d264f9d98b359d9c8e839832cebb1ec14ed" |
13 |
| - sha256 cellar: :any_skip_relocation, ventura: "18331d741ec1f4db20654bd6d8afe8d047ad22273b83a1c8f856433ef097235e" |
14 |
| - sha256 cellar: :any_skip_relocation, x86_64_linux: "4aa5a2d8dc6ac88a1543047d88c4823d512d5de672ed48dd0d22484bfcdb97fe" |
| 9 | + sha256 cellar: :any_skip_relocation, arm64_sequoia: "d85402ff7c13b214f14f800a5828092fb22b5926dcb68131a45a17f53e00bd06" |
| 10 | + sha256 cellar: :any_skip_relocation, arm64_sonoma: "bf85978542db9fbedaf090bfca85800de8ea8a7fe8a08e77c4bba1475e414026" |
| 11 | + sha256 cellar: :any_skip_relocation, arm64_ventura: "8558d7931c85816fd73ef706c60c2db5503802a6aeb432b920e80b69d020224e" |
| 12 | + sha256 cellar: :any_skip_relocation, sonoma: "cfd02cbd48e512cb8f5e6d22d4013e404c1204175dae23d6e9ccff74c139d76b" |
| 13 | + sha256 cellar: :any_skip_relocation, ventura: "26ae205cc0fdee615e9d8df9b5f5a874cb768cbc6cab66ccfedcaa631a3322d3" |
| 14 | + sha256 cellar: :any_skip_relocation, x86_64_linux: "c4da9417e5528f8fd3331ca2eab5348b40e9530bf916da6f37abbfa61d285158" |
15 | 15 | end
|
16 | 16 |
|
17 | 17 | depends_on "gradle" => :build
|
18 | 18 | depends_on "openjdk"
|
19 | 19 |
|
| 20 | + # Fix for gradle 8.13, could be removed in the next release |
| 21 | + # We modify the patch to remove binary changes for linux |
| 22 | + # PR Ref: https://github.com/opensearch-project/OpenSearch/pull/17345 |
| 23 | + patch :DATA |
| 24 | + |
20 | 25 | def install
|
21 | 26 | platform = OS.kernel_name.downcase
|
22 | 27 | platform += "-arm64" if Hardware::CPU.arm?
|
@@ -105,3 +110,81 @@ def caveats
|
105 | 110 | system bin/"opensearch-plugin", "list"
|
106 | 111 | end
|
107 | 112 | end
|
| 113 | + |
| 114 | +__END__ |
| 115 | +diff --git a/build.gradle b/build.gradle |
| 116 | +index 679f7b9299248fb0f5173db8fccdfb77965e394b..187574da9e62aec063548871f5dc1a7fbf62a082 100644 |
| 117 | +--- a/build.gradle |
| 118 | ++++ b/build.gradle |
| 119 | +@@ -721,7 +721,7 @@ subprojects { |
| 120 | + reporting { |
| 121 | + reports { |
| 122 | + testAggregateTestReport(AggregateTestReport) { |
| 123 | +- testType = TestSuiteType.UNIT_TEST |
| 124 | ++ testSuiteName = "test" |
| 125 | + } |
| 126 | + } |
| 127 | + } |
| 128 | +diff --git a/distribution/packages/build.gradle b/distribution/packages/build.gradle |
| 129 | +index ada19dfa38e785aed9ea01d613226d624856ebbd..d3cecde24a35dade98ed18c2d5f55dba0ee5b5b7 100644 |
| 130 | +--- a/distribution/packages/build.gradle |
| 131 | ++++ b/distribution/packages/build.gradle |
| 132 | +@@ -63,7 +63,7 @@ import java.util.regex.Pattern |
| 133 | + */ |
| 134 | + |
| 135 | + plugins { |
| 136 | +- id "com.netflix.nebula.ospackage-base" version "11.10.1" |
| 137 | ++ id "com.netflix.nebula.ospackage-base" version "11.11.1" |
| 138 | + } |
| 139 | + |
| 140 | + void addProcessFilesTask(String type, boolean jdk) { |
| 141 | +diff --git a/gradle/code-coverage.gradle b/gradle/code-coverage.gradle |
| 142 | +index eb27dd1a76634251bceafd6fefbafd65eafd5c66..1e41f12e1cc48de3ec9bcd0078f348f3a30af8f3 100644 |
| 143 | +--- a/gradle/code-coverage.gradle |
| 144 | ++++ b/gradle/code-coverage.gradle |
| 145 | +@@ -38,7 +38,7 @@ if (System.getProperty("tests.coverage")) { |
| 146 | + reporting { |
| 147 | + reports { |
| 148 | + testCodeCoverageReport(JacocoCoverageReport) { |
| 149 | +- testType = TestSuiteType.UNIT_TEST |
| 150 | ++ testSuiteName = "test" |
| 151 | + } |
| 152 | + } |
| 153 | + } |
| 154 | +diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties |
| 155 | +index c51246f2815f5294bd8a51b3ac25c19964577ac1..95e1a2f213a063c0f371f4eab8e67ba860be7baa 100644 |
| 156 | +--- a/gradle/wrapper/gradle-wrapper.properties |
| 157 | ++++ b/gradle/wrapper/gradle-wrapper.properties |
| 158 | +@@ -11,7 +11,7 @@ |
| 159 | + |
| 160 | + distributionBase=GRADLE_USER_HOME |
| 161 | + distributionPath=wrapper/dists |
| 162 | +-distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-all.zip |
| 163 | ++distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-all.zip |
| 164 | + zipStoreBase=GRADLE_USER_HOME |
| 165 | + zipStorePath=wrapper/dists |
| 166 | +-distributionSha256Sum=296742a352f0b20ec14b143fb684965ad66086c7810b7b255dee216670716175 |
| 167 | ++distributionSha256Sum=fba8464465835e74f7270bbf43d6d8a8d7709ab0a43ce1aa3323f73e9aa0c612 |
| 168 | +diff --git a/gradlew b/gradlew |
| 169 | +index f5feea6d6b116baaca5a2642d4d9fa1f47d574a7..faf93008b77e7b52e18c44e4eef257fc2f8fd76d 100755 |
| 170 | +--- a/gradlew |
| 171 | ++++ b/gradlew |
| 172 | +@@ -86,8 +86,7 @@ done |
| 173 | + # shellcheck disable=SC2034 |
| 174 | + APP_BASE_NAME=${0##*/} |
| 175 | + # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) |
| 176 | +-APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s |
| 177 | +-' "$PWD" ) || exit |
| 178 | ++APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit |
| 179 | + |
| 180 | + # Use the maximum available, or set MAX_FD != -1 to use that value. |
| 181 | + MAX_FD=maximum |
| 182 | +@@ -206,7 +205,7 @@ fi |
| 183 | + DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' |
| 184 | + |
| 185 | + # Collect all arguments for the java command: |
| 186 | +-# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, |
| 187 | ++# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, |
| 188 | + # and any embedded shellness will be escaped. |
| 189 | + # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be |
| 190 | + # treated as '${Hostname}' itself on the command line. |
0 commit comments