Use a SHA256 checksum in the Homebrew formula
Closes gh-5885
This commit is contained in:
parent
72c2454218
commit
d77d3ff236
|
@ -312,7 +312,7 @@
|
|||
<stringutil string="${version-type}" property="repo">
|
||||
<lowercase />
|
||||
</stringutil>
|
||||
<checksum algorithm="sha-1" file="${project.build.directory}/spring-boot-cli-${project.version}-bin.tar.gz" property="checksum" />
|
||||
<checksum algorithm="sha-256" file="${project.build.directory}/spring-boot-cli-${project.version}-bin.tar.gz" property="checksum" />
|
||||
<echo message="Customizing homebrew for ${project.version} with checksum ${checksum} in ${repo} repo" />
|
||||
<copy file="${basedir}/src/main/homebrew/springboot.rb" tofile="${project.build.directory}/springboot.rb" overwrite="true">
|
||||
<filterchain>
|
||||
|
|
|
@ -4,7 +4,7 @@ class Springboot < Formula
|
|||
homepage 'http://projects.spring.io/spring-boot/'
|
||||
url 'https://repo.spring.io/${repo}/org/springframework/boot/spring-boot-cli/${project.version}/spring-boot-cli-${project.version}-bin.tar.gz'
|
||||
version '${project.version}'
|
||||
sha1 '${checksum}'
|
||||
sha256 '${checksum}'
|
||||
head 'https://github.com/spring-projects/spring-boot.git'
|
||||
|
||||
if build.head?
|
||||
|
|
Loading…
Reference in New Issue