google-java-format 1.7

The pom.xml in the source archive for release 1.7 has the version set
to 1.7-SNAPSHOT which causes the build to fail, therefore include a
call to mvn versions:set to force it to the correct version.

Change-Id: I1af0025b68fe7f14c7edd568f6766d05b9724822

Closes #37083.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
This commit is contained in:
David Pursehouse 2019-02-11 12:45:50 +09:00 committed by Chongyu Zhu
parent 3d89ab5a3a
commit 04cfeeb46f
No known key found for this signature in database
GPG key ID: 1A43E3C9100B38F5

View file

@ -1,8 +1,8 @@
class GoogleJavaFormat < Formula
desc "Reformats Java source code to comply with Google Java Style"
homepage "https://github.com/google/google-java-format"
url "https://github.com/google/google-java-format/archive/google-java-format-1.6.tar.gz"
sha256 "d471a84c49ef33e1ab5059f7a04f5e1ac127ccf05db1c2d69d4c1733a256a15f"
url "https://github.com/google/google-java-format/archive/google-java-format-1.7.tar.gz"
sha256 "199c70851146bc15c8e828f5ca78d6c2d7b338def9cc70786ac3ef5967796399"
bottle do
cellar :any_skip_relocation
@ -15,6 +15,7 @@ class GoogleJavaFormat < Formula
depends_on "maven" => :build
def install
system "mvn", "versions:set", "-DnewVersion=#{version}"
system "mvn", "install", "-DskipTests=true", "-Dmaven.javadoc.skip=true", "-B"
libexec.install "core/target/google-java-format-#{version}-all-deps.jar"