jenkins: require Java 8 specifically (#21167)

master
ryenus 2018-01-07 17:04:41 +08:00 committed by ilovezfs
parent 8d465b9434
commit a687943855
1 changed files with 6 additions and 2 deletions

View File

@ -11,7 +11,7 @@ class Jenkins < Formula
bottle :unneeded
depends_on :java => "1.8+"
depends_on :java => "1.8"
def install
if build.head?
@ -40,7 +40,11 @@ class Jenkins < Formula
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/java</string>
<string>/usr/libexec/java_home</string>
<string>-v</string>
<string>1.8</string>
<string>--exec</string>
<string>java</string>
<string>-Dmail.smtp.starttls.enable=true</string>
<string>-jar</string>
<string>#{opt_libexec}/jenkins.war</string>