Skip to content

Commit

Permalink
gradle 4.1-rc-1 (devel)
Browse files Browse the repository at this point in the history
- use gradle wrapper generated with overridable JAVA_HOME
- remove Windows *.bat files
  • Loading branch information
indrajitr authored and ilovezfs committed Jul 23, 2017
1 parent ab60542 commit 2f43b3e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Formula/gradle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,23 @@ class Gradle < Formula
url "https://services.gradle.org/distributions/gradle-4.0.1-all.zip"
sha256 "8a8005633be0ca38a206f2590445685683452a0b98a5d8ffd5b8413be09bf998"

devel do
url "https://services.gradle.org/distributions/gradle-4.1-rc-1-all.zip"
version "4.1-rc-1"
sha256 "eb504c25abae8ee43e01a56f6873137d74ce68c43b8b1fe89dc0562e6b81ca51"
end

bottle :unneeded

option "with-all", "Installs Javadoc, examples, and source in addition to the binaries"

depends_on :java => "1.7+"

def install
rm_f Dir["bin/*.bat"]
libexec.install %w[bin lib]
libexec.install %w[docs media samples src] if build.with? "all"
bin.install_symlink libexec/"bin/gradle"
(bin/"gradle").write_env_script libexec/"bin/gradle", Language::Java.overridable_java_home_env
end

test do
Expand Down

0 comments on commit 2f43b3e

Please sign in to comment.