Skip to content

Commit

Permalink
wartremover: require Java 8 specifically (#28323)
Browse files Browse the repository at this point in the history
  • Loading branch information
apjanke authored and ilovezfs committed May 27, 2018
1 parent 3c6686a commit c8381dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Formula/wartremover.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class Wartremover < Formula
homepage "https://github.com/wartremover/wartremover"
url "https://github.com/wartremover/wartremover/archive/v2.1.1.tar.gz"
sha256 "4c789ee33ecff2b655bc839c5ebc7b20d581f99529f8f553628ed38d9615e553"
revision 1
head "https://github.com/wartremover/wartremover.git"

bottle do
Expand All @@ -14,13 +15,13 @@ class Wartremover < Formula
end

depends_on "sbt" => :build
depends_on :java => "1.6+"
depends_on :java => "1.8"

def install
system "./sbt", "-sbt-jar", Formula["sbt"].opt_libexec/"bin/sbt-launch.jar",
"core/assembly"
libexec.install "wartremover-assembly.jar"
bin.write_jar_script libexec/"wartremover-assembly.jar", "wartremover"
bin.write_jar_script libexec/"wartremover-assembly.jar", "wartremover", :java_version => "1.8"
end

test do
Expand Down

0 comments on commit c8381dc

Please sign in to comment.