Skip to content

Commit a00ebf6

Browse files
committed
chore: adapt templates to use brewed jdk for launching
1 parent 286f9e8 commit a00ebf6

File tree

2 files changed

+2
-35
lines changed

2 files changed

+2
-35
lines changed
Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Homebrew
22

33
## Formulae
4-
Invoke either of the following commands if the formula is hosted at GitHub
4+
Invoke either of the following commands
55

66
```sh
77
$ brew install {{brewRepositoryOwner}}/{{brewRepositoryAlias}}/<formula>
@@ -13,36 +13,3 @@ Or
1313
$ brew tap {{brewRepositoryOwner}}/{{brewRepositoryAlias}}
1414
$ brew install <formula>
1515
```
16-
17-
Invoke the following command if the formula is *not* hosted at GitHub
18-
19-
```sh
20-
brew tap {{brewRepositoryOwner}}/{{brewRepositoryName}} {{tapRepoCloneUrl}}
21-
brew install <formula>
22-
```
23-
24-
## Casks
25-
Invoke either of the following commands if the cask is hosted at GitHub
26-
27-
```sh
28-
$ brew install --cask {{brewRepositoryOwner}}/{{brewRepositoryAlias}}/<cask>
29-
```
30-
31-
Or
32-
33-
```sh
34-
$ brew tap {{brewRepositoryOwner}}/{{brewRepositoryAlias}}
35-
$ brew install --cask <cask>
36-
```
37-
38-
Invoke the following command if the cask is *not* hosted at GitHub
39-
40-
```sh
41-
brew tap {{brewRepositoryOwner}}/{{brewRepositoryName}} {{tapRepoCloneUrl}}
42-
brew install --cask <formula>
43-
```
44-
45-
If you get a dialog stating the cask is broken try installing with `--no-quarantine`.
46-
47-
## Documentation
48-
`brew help`, `man brew` or check [Homebrew's documentation](https://docs.brew.sh).

app/src/jreleaser/distributions/spotless-cli/brew/formula.rb.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class {{brewFormulaName}} < Formula
2424

2525
def install
2626
libexec.install Dir["*"]
27-
bin.install_symlink "#{libexec}/bin/{{distributionExecutableUnix}}" => "{{distributionExecutableName}}"
27+
(bin/"{{distributionExecutableName}}").write_env_script libexec/"bin/{{distributionExecutableUnix}}", Language::Java.java_home_env("{{distributionJavaVersionMajor}}")
2828
end
2929

3030
test do

0 commit comments

Comments
 (0)