META-INF.jreleaser.templates.native-image.brew.formula-multi.rb.tpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jreleaser-templates Show documentation
Show all versions of jreleaser-templates Show documentation
JReleaser packager templates
The newest version!
# {{jreleaserCreationStamp}}
{{#brewRequireRelative}}
require_relative "{{.}}"
{{/brewRequireRelative}}
class {{brewFormulaName}} < Formula
desc "{{projectDescription}}"
homepage "{{projectLinkHomepage}}"
version "{{projectVersion}}"
license "{{projectLicense}}"
{{brewMultiPlatform}}
{{#brewHasLivecheck}}
livecheck do
{{#brewLivecheck}}
{{.}}
{{/brewLivecheck}}
end
{{/brewHasLivecheck}}
{{#brewDependencies}}
depends_on {{.}}
{{/brewDependencies}}
def install
libexec.install Dir["*"]
bin.install_symlink "#{libexec}/bin/{{distributionExecutableUnix}}" => "{{distributionExecutableName}}"
end
test do
output = shell_output("#{bin}/{{distributionExecutableName}} --version")
assert_match "{{projectVersion}}", output
end
end