Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (24 sloc) 784 Bytes
class Mill < Formula
desc "Scala build tool"
homepage "https://www.lihaoyi.com/mill/"
url "https://github.com/lihaoyi/mill/releases/download/0.3.6/0.3.6"
sha256 "8112a29395c9039bd0c41bf77c89b2cb5dc6d7f4faf67dc443bc2893280254b5"
bottle :unneeded
depends_on :java => "1.8"
def install
libexec.install Dir["*"].shift => "mill"
chmod 0555, libexec/"mill"
(bin/"mill").write_env_script libexec/"mill", Language::Java.java_home_env("1.8")
end
test do
(testpath/"build.sc").write <<~EOS
import mill._
import mill.scalalib._
object foo extends ScalaModule {
def scalaVersion = "2.12.8"
}
EOS
output = shell_output("#{bin}/mill resolve __.compile")
assert_equal "foo.compile", output.lines.last.chomp
end
end
You can’t perform that action at this time.