From dd5c7a7b946a18bc4c4cb69cc781620342b38536 Mon Sep 17 00:00:00 2001 From: Vinicius Lublanski Date: Wed, 1 Oct 2025 11:43:45 -0300 Subject: [PATCH 1/2] fix(homebrew): install Spring Boot CLI jars into libexec Signed-off-by: Vinicius Lublanski --- .../src/main/homebrew/spring-boot.rb | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/cli/spring-boot-cli/src/main/homebrew/spring-boot.rb b/cli/spring-boot-cli/src/main/homebrew/spring-boot.rb index 2dede209226b..fe057c8a06f3 100644 --- a/cli/spring-boot-cli/src/main/homebrew/spring-boot.rb +++ b/cli/spring-boot-cli/src/main/homebrew/spring-boot.rb @@ -2,9 +2,9 @@ class SpringBoot < Formula homepage 'https://spring.io/projects/spring-boot' - url '${repo}/org/springframework/boot/spring-boot-cli/${version}/spring-boot-cli-${version}-bin.tar.gz' - version '${version}' - sha256 '${hash}' + url 'https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-cli/3.5.6/spring-boot-cli-3.5.6-bin.tar.gz' + version '3.5.6' + sha256 '3ac9314100c474ddad1c4ae04a85404383817d6f748820980e26ccbe55393bbe' head 'https://github.com/spring-projects/spring-boot.git', :branch => "main" def install @@ -16,9 +16,14 @@ def install root = '.' end - bin.install Dir["#{root}/bin/spring"] - lib.install Dir["#{root}/lib/spring-boot-cli-*.jar"] - bash_completion.install Dir["#{root}/shell-completion/bash/spring"] - zsh_completion.install Dir["#{root}/shell-completion/zsh/_spring"] + libexec.install Dir["#{root}/*"] + + (bin/"spring").write_env_script libexec/"bin/spring", {} + + bash_comp = libexec/"shell-completion/bash/spring" + zsh_comp = libexec/"shell-completion/zsh/_spring" + + bash_completion.install bash_comp if bash_comp.exist? + zsh_completion.install zsh_comp if zsh_comp.exist? end end From 5be051cc0cffe97b4baee4aa2e2f39cb3870cf31 Mon Sep 17 00:00:00 2001 From: Vinicius Lublanski Date: Sat, 18 Oct 2025 19:43:05 -0300 Subject: [PATCH 2/2] fix: back to env variables repo, version and hash Signed-off-by: Vinicius Lublanski --- cli/spring-boot-cli/src/main/homebrew/spring-boot.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/spring-boot-cli/src/main/homebrew/spring-boot.rb b/cli/spring-boot-cli/src/main/homebrew/spring-boot.rb index fe057c8a06f3..69702300210c 100644 --- a/cli/spring-boot-cli/src/main/homebrew/spring-boot.rb +++ b/cli/spring-boot-cli/src/main/homebrew/spring-boot.rb @@ -2,9 +2,9 @@ class SpringBoot < Formula homepage 'https://spring.io/projects/spring-boot' - url 'https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-cli/3.5.6/spring-boot-cli-3.5.6-bin.tar.gz' - version '3.5.6' - sha256 '3ac9314100c474ddad1c4ae04a85404383817d6f748820980e26ccbe55393bbe' + url '${repo}/org/springframework/boot/spring-boot-cli/${version}/spring-boot-cli-${version}-bin.tar.gz' + version '${version}' + sha256 '${hash}' head 'https://github.com/spring-projects/spring-boot.git', :branch => "main" def install