No more compile time boredom!
This plugin is inspired by sbt-musical.
- Google Chrome
- ChromeDriver (https://sites.google.com/a/chromium.org/chromedriver/)
You have to add a chromedriver directory to PATH or specify chromedriver path via webdriver.chrome.driver system property.
$ export PATH="$PATH:/path/to/chromedriver_directory"
or
$ sbt -Dwebdriver.chrome.driver=/path/to/chromedriverIf you've installed chromedriver via homebrew, you don't need to do this.
Add the plugin in project/plugins.sbt:
addSbtPlugin("com.mayreh" % "sbt-youtube" % "0.1.1")Setup playlist in (project root)/youtube.sbt:
// list of youtube video ids.
youtubePlaylist ++= Seq(
// Perfume
"q6T0wOMsNrI", // FLASH
"K54CYowOqxM", // レーザービーム
"7PtvnaEo9-0", // Spring of Life
"H4znsXCH_2Y", // Spending all my time
"guqVgQFvXXY", // Cling Cling
"CYL3DnyA4e0", // Sweet Refrain
"vhfYis6VuXY", // Pick Me Up
"ihNaFCEd0Ms" // 1mm
)You can also install as global plugin. ~/.sbt/0.13/plugins/plugins.sbt:
addSbtPlugin("com.mayreh" % "sbt-youtube" % "0.1.1")Playlist in ~/.sbt/0.13/youtube.sbt:
import com.mayreh.sbt.youtube.SbtPlugin.Keys._
// list of youtube video ids.
youtubePlaylist ++= Seq(
// Perfume
"q6T0wOMsNrI", // FLASH
"K54CYowOqxM", // レーザービーム
"7PtvnaEo9-0", // Spring of Life
"H4znsXCH_2Y", // Spending all my time
"guqVgQFvXXY", // Cling Cling
"CYL3DnyA4e0", // Sweet Refrain
"vhfYis6VuXY", // Pick Me Up
"ihNaFCEd0Ms" // 1mm
)Prefix u to any command.
$ sbt
> u compilePublished under the MIT License.