File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
src/jreleaser/distributions/subpop/brew Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ # { {jreleaserCreationStamp} }
2+ { {#brewRequireRelative} }
3+ require_relative "{ {.} }"
4+ { {/brewRequireRelative} }
5+
6+ class { {brewFormulaName} } < Formula
7+ desc "{ {projectDescription} }"
8+ homepage "{ {projectLinkHomepage} }"
9+ url "{ {distributionUrl} }"{ {#brewDownloadStrategy} }, :using => { {.} }{ {/brewDownloadStrategy} }
10+ version "{ {projectVersion} }"
11+ sha256 "{ {distributionChecksumSha256} }"
12+ license "{ {projectLicense} }"
13+
14+ { {#brewHasLivecheck} }
15+ livecheck do
16+ { {#brewLivecheck} }
17+ { {.} }
18+ { {/brewLivecheck} }
19+ end
20+ { {/brewHasLivecheck} }
21+ { {#brewDependencies} }
22+ depends_on { {.} }
23+ { {/brewDependencies} }
24+
25+ def install
26+ libexec.install Dir["*"]
27+ (bin/"{ {distributionExecutableName} }").write_env_script libexec/"bin/{ {distributionExecutableUnix} }", JAVA_HOME: Formula["openjdk@21"].opt_prefix
28+ end
29+
30+ test do
31+ output = shell_output("#{ bin} /{ {distributionExecutableName} } --version")
32+ assert_match "{ {projectVersion} }", output
33+ end
34+ end
You can’t perform that action at this time.
0 commit comments