Skip to content

Instantly share code, notes, and snippets.

@visualskyrim
Created April 23, 2018 07:55
Show Gist options
  • Save visualskyrim/36e88b75de4f69c099acf0db24899d0a to your computer and use it in GitHub Desktop.
Save visualskyrim/36e88b75de4f69c099acf0db24899d0a to your computer and use it in GitHub Desktop.
scala style setting
lazy val compileScalastyle = taskKey[Unit]("compileScalastyle")
// scalastyle >= 0.9.0
compileScalastyle := scalastyle.in(Compile).toTask("").value
(compile in Compile) := ((compile in Compile) dependsOn compileScalastyle).value
assemblyMergeStrategy in assembly := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case x => MergeStrategy.first
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment