An automated PhantomJS Installer for sbt
project/plugins.sbt
addSbtPlugin("jp.leafytree.sbt" % "sbt-phantomjs" % "0.1.4")
build.sbt
// Enable the plugin
val myProject = (project in file(".")).enablePlugins(PhantomJs)
// Install PhantomJS and add system properties definition for Selenium PhantomJS Driver to javaOptions
javaOptions ++= PhantomJs.setup(baseDirectory.value)
$ sbt installPhantomJs
- Install PhantomJS to
target/phantomjs/
- Write properties for Selenium PhantomJS Driver to ...
target/phantomjs.properties
file- System Property using
System.setProperty()
javaOptions
of sbt