1- import de .johoop .findbugs4sbt .FindBugs ._
2- import de .johoop .findbugs4sbt .{ Effort , ReportType }
3- import de .johoop .jacoco4sbt .JacocoPlugin .jacoco
41import com .typesafe .sbt .SbtScalariform
52import com .typesafe .sbt .SbtScalariform .ScalariformKeys
63import scalariform .formatter .preferences ._
74
8- SbtScalariform .scalariformSettings
9-
105val formatPrefs = FormattingPreferences ()
116 .setPreference(IndentSpaces , 4 )
127
@@ -64,15 +59,12 @@ checkstyle in Compile := {
6459// add checkstyle as a dependency of doc
6560doc in Compile := ((doc in Compile ).dependsOn(checkstyle in Compile )).value
6661
67- findbugsSettings
68- findbugsReportType := Some (ReportType .Html )
62+ findbugsReportType := Some (FindbugsReport .Html )
6963findbugsReportPath := Some (crossTarget.value / " findbugs.html" )
70- findbugsEffort := Effort .Maximum
64+ findbugsEffort := FindbugsEffort .Maximum
7165findbugsMaxMemory := 2000
7266
73- jacoco.settings
74-
75- javacOptions in (Compile , compile) ++= Seq (" -source" , " 1.6" , " -target" , " 1.8" ,
67+ javacOptions in (Compile , compile) ++= Seq (" -source" , " 1.8" , " -target" , " 1.8" ,
7668 " -g" , " -Xlint:unchecked" )
7769
7870// because we test some global state such as singleton caches,
@@ -86,5 +78,3 @@ javadocSourceBaseUrl := {
8678 for (gitHead <- com.typesafe.sbt.SbtGit .GitKeys .gitHeadCommit.value)
8779 yield s " https://github.com/lightbend/config/blob/ $gitHead/config/src/main/java "
8880}
89-
90- javaVersionPrefix in javaVersionCheck := Some (" 1.8" )
0 commit comments