Skip to content

Commit

Permalink
Relocate Spring Boot to spring-io/tap
Browse files Browse the repository at this point in the history
  • Loading branch information
philwebb committed Jan 15, 2021
1 parent 67ddb69 commit 62b0174
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions springboot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,17 @@ class Springboot < Formula
sha256 '6d7f71f0472a71f8b35ef3759e1d0368b52c9e853e0d1cc2325a8faed45d58b8'
head 'https://github.com/spring-projects/spring-boot.git'

if build.head?
depends_on 'maven' => :build
end

def install
if build.head?
Dir.chdir('spring-boot-cli') { system 'mvn -U -DskipTests=true package' }
root = 'spring-boot-cli/target/spring-boot-cli-*-bin/spring-*'
else
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"]
end
ohai "We've Moved!"

opoo "Spring Boot has relocated to spring-io/tap"
opoo ""

odie """To upgrade Spring Boot, retap it with:
brew tap spring-io/tap
brew uninstall springboot
brew install spring-boot"""

end



0 comments on commit 62b0174

Please sign in to comment.