Skip to content

Commit 3fda833

Browse files
committed
nessie 0.104.3 (new formula)
1 parent 4c4da0b commit 3fda833

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

Formula/n/nessie.rb

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
class Nessie < Formula
2+
desc "Transactional Catalog for Data Lakes with Git-like semantics"
3+
homepage "https://projectnessie.org"
4+
url "https://github.com/projectnessie/nessie/archive/refs/tags/nessie-0.104.3.tar.gz"
5+
sha256 "67ed6221ebceb3d55ed332e5461842bc3ca36273fd164d02d55498fce6af13ef"
6+
license "Apache-2.0"
7+
8+
depends_on "gradle@8" => :build
9+
# The build fails with more recent JDKs
10+
# See: https://github.com/projectnessie/nessie/issues/11145
11+
depends_on "openjdk@21"
12+
13+
def install
14+
ENV["JAVA_HOME"] = Language::Java.java_home("21")
15+
system "gradle", ":nessie-quarkus:assemble"
16+
libexec.install Dir["servers/quarkus-server/build/quarkus-app/*"]
17+
bin.write_jar_script libexec/"quarkus-run.jar", "nessie"
18+
end
19+
20+
service do
21+
run [opt_bin/"nessie"]
22+
keep_alive true
23+
error_log_path var/"log/nessie.log"
24+
log_path var/"log/nessie.log"
25+
end
26+
27+
test do
28+
port = free_port
29+
ENV["QUARKUS_HTTP_PORT"] = free_port.to_s
30+
ENV["QUARKUS_MANAGEMENT_PORT"] = port.to_s
31+
spawn bin/"nessie"
32+
33+
output = shell_output("curl -s --retry 5 --retry-connrefused localhost:#{port}/q/health")
34+
assert_match "UP", output
35+
end
36+
end

0 commit comments

Comments
 (0)