mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Fix Homebrew formula's install --head support
This commit updates the Homebrew formula's install --head support to use the main branch (rather than the default of master) and to build the project using Gradle rather than trying to use Maven. Closes gh-33704
This commit is contained in:
parent
8fa318453f
commit
2d372edcfc
@ -5,16 +5,13 @@ class SpringBoot < Formula
|
|||||||
url '${repo}/org/springframework/boot/spring-boot-cli/${project.version}/spring-boot-cli-${project.version}-bin.tar.gz'
|
url '${repo}/org/springframework/boot/spring-boot-cli/${project.version}/spring-boot-cli-${project.version}-bin.tar.gz'
|
||||||
version '${project.version}'
|
version '${project.version}'
|
||||||
sha256 '${hash}'
|
sha256 '${hash}'
|
||||||
head 'https://github.com/spring-projects/spring-boot.git'
|
head 'https://github.com/spring-projects/spring-boot.git', :branch => "main"
|
||||||
|
|
||||||
if build.head?
|
|
||||||
depends_on 'maven' => :build
|
|
||||||
end
|
|
||||||
|
|
||||||
def install
|
def install
|
||||||
if build.head?
|
if build.head?
|
||||||
Dir.chdir('spring-boot-cli') { system 'mvn -U -DskipTests=true package' }
|
system './gradlew spring-boot-project:spring-boot-tools:spring-boot-cli:tar'
|
||||||
root = 'spring-boot-cli/target/spring-boot-cli-*-bin/spring-*'
|
system 'tar -xzf spring-boot-project/spring-boot-tools/spring-boot-cli/build/distributions/spring-* -C spring-boot-project/spring-boot-tools/spring-boot-cli/build/distributions'
|
||||||
|
root = 'spring-boot-project/spring-boot-tools/spring-boot-cli/build/distributions/spring-*'
|
||||||
else
|
else
|
||||||
root = '.'
|
root = '.'
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user