@@ -2,32 +2,31 @@ import com.typesafe.sbt.SbtScalariform.ScalariformKeys
22import scalariform .formatter .preferences ._
33
44lazy val commonSettings = inConfig(Test )(Defaults .testSettings) ++
5- SbtScalariform .defaultScalariformSettings ++ Seq (
6- organization := " org.scalariform" ,
7- sonatypeProfileName := organization.value,
8- scalaVersion := crossScalaVersions.value.head,
9- crossScalaVersions := Seq (
10- " 2.12.2" ,
11- " 2.11.11" ,
12- " 2.10.6"
13- ),
14- exportJars := true , // Needed for cli oneJar
15- scalacOptions ++= (CrossVersion .partialVersion(scalaVersion.value) match {
16- case Some ((2 , 12 )) => Seq (
17- " -Xlint:-unused,_" , " -Ywarn-unused:imports" ,
18- " -language:postfixOps" , " -language:implicitConversions" ,
19- " -deprecation" , " -feature"
20- )
21- case Some ((2 , major)) if major >= 11 =>
22- scalac2_10Options ++ scalac2_11Options
23- case _ =>
24- scalac2_10Options
25- }),
26- credentials ++= {
27- val creds = Path .userHome / " .m2" / " credentials"
28- if (creds.exists) Seq (Credentials (creds)) else Nil
29- }
30- )
5+ SbtScalariform .defaultScalariformSettings ++ Seq (
6+ organization := " org.scalariform" ,
7+ sonatypeProfileName := organization.value,
8+ scalaVersion := crossScalaVersions.value.head,
9+ crossScalaVersions := Seq (
10+ " 2.12.3" ,
11+ " 2.11.11" ,
12+ " 2.10.6"
13+ ),
14+ scalacOptions ++= (CrossVersion .partialVersion(scalaVersion.value) match {
15+ case Some ((2 , 12 )) => Seq (
16+ " -Xlint:-unused,_" , " -Ywarn-unused:imports" ,
17+ " -language:postfixOps" , " -language:implicitConversions" ,
18+ " -deprecation" , " -feature"
19+ )
20+ case Some ((2 , major)) if major >= 11 =>
21+ scalac2_10Options ++ scalac2_11Options
22+ case _ =>
23+ scalac2_10Options
24+ }),
25+ credentials ++= {
26+ val creds = Path .userHome / " .m2" / " credentials"
27+ if (creds.exists) Seq (Credentials (creds)) else Nil
28+ }
29+ )
3130
3231def scalac2_10Options = Seq (
3332 " -encoding" , " UTF-8" ,
@@ -169,4 +168,9 @@ def pomExtraXml =
169168 <name >Mariano de Achaval </name >
170169 <url >https:// github.com/ machaval/</ url>
171170 </developer >
171+ <developer >
172+ <id >godenji</id >
173+ <name >N .S . Cutler </name >
174+ <url >https:// github.com/ godenji/</ url>
175+ </developer >
172176 </developers >
0 commit comments