Format the build

This commit is contained in:
Dale Wijnand 2017-06-21 13:47:35 +01:00
parent 4074e283d3
commit f5d66db0a6
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF
1 changed files with 20 additions and 22 deletions

View File

@ -37,8 +37,9 @@ lazy val lmRoot = (project in file("."))
Seq(
homepage := Some(url("https://github.com/sbt/librarymanagement")),
description := "Library management module for sbt",
scmInfo := Some(ScmInfo(url("https://github.com/sbt/librarymanagement"),
"git@github.com:sbt/librarymanagement.git")),
scmInfo := Some(ScmInfo(
url("https://github.com/sbt/librarymanagement"), "git@github.com:sbt/librarymanagement.git"
)),
bintrayPackage := "librarymanagement",
scalafmtOnCompile := true,
// scalafmtVersion 1.0.0-RC3 has regression
@ -63,21 +64,16 @@ lazy val lm = (project in file("librarymanagement"))
.settings(
commonSettings,
name := "librarymanagement",
libraryDependencies ++= Seq(ivy,
jsch,
scalaReflect.value,
launcherInterface,
gigahorseOkhttp,
okhttpUrlconnection,
sjsonnewScalaJson.value % Optional),
libraryDependencies ++= Seq(
ivy, jsch, scalaReflect.value, launcherInterface, gigahorseOkhttp, okhttpUrlconnection,
sjsonnewScalaJson.value % Optional
),
libraryDependencies ++= scalaXml.value,
resourceGenerators in Compile += Def
.task(
Util.generateVersionFile(version.value,
resourceManaged.value,
streams.value,
(compile in Compile).value))
.taskValue,
resourceGenerators in Compile += Def.task(
Util.generateVersionFile(
version.value, resourceManaged.value, streams.value, (compile in Compile).value
)
).taskValue,
// mimaBinaryIssueFilters ++= Seq(),
managedSourceDirectories in Compile +=
baseDirectory.value / "src" / "main" / "contraband-scala",
@ -91,12 +87,14 @@ lazy val lm = (project in file("librarymanagement"))
(((srcs --- sdirs --- base) pair (relativeTo(sdirs) | relativeTo(base) | flat)) toSeq)
}
)
.configure(addSbtIO,
addSbtUtilLogging,
addSbtUtilTesting,
addSbtUtilCollection,
addSbtUtilCompletion,
addSbtUtilCache)
.configure(
addSbtIO,
addSbtUtilLogging,
addSbtUtilTesting,
addSbtUtilCollection,
addSbtUtilCompletion,
addSbtUtilCache
)
.enablePlugins(ContrabandPlugin, JsonCodecPlugin)
def customCommands: Seq[Setting[_]] = Seq(