-
sbt-phantomjs是一款自动化安装和配置PhantomJS的插件,适用于sbt环境
资源介绍
sbt-phantomjs
用于sbt的自动化PhantomJS安装程序
设置
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)
样品
任务
ins