1- import com .typesafe .sbt .osgi .SbtOsgi ._
2- import com .typesafe .sbt .SbtScalariform
3- import com .typesafe .sbt .SbtScalariform .ScalariformKeys
41import com .typesafe .sbt .osgi .SbtOsgi
52
6- import scalariform .formatter .preferences .{AlignSingleLineCaseStatements , DoubleIndentClassDeclaration }
7-
83enablePlugins(SbtOsgi )
94
10- name := " scala-logging"
115organization := " com.typesafe.scala-logging"
6+ name := " scala-logging"
127licenses := Seq (" Apache 2.0 License" -> url(" http://www.apache.org/licenses/LICENSE-2.0.html" ))
138homepage := Some (url(" https://github.com/typesafehub/scala-logging" ))
9+ incOptions := incOptions.value.withLogRecompileOnMacro(false )
1410scalaVersion := Version .scala
1511crossScalaVersions := Version .crossScala
1612scalacOptions ++= List (
@@ -22,26 +18,14 @@ scalacOptions ++= List(
2218
2319osgiSettings
2420
25- OsgiKeys .bundleSymbolicName := s " com.typesafe.scalalogging "
26- OsgiKeys .exportPackage := Seq (s " com.typesafe.scalalogging.*;version= ${version.value}" )
27-
28- packageBin in Runtime <<= OsgiKeys .bundle
29- packagedArtifact in (Compile , packageBin) <<= (artifact in (Compile , packageBin), OsgiKeys .bundle).identityMap
30-
31- unmanagedSourceDirectories in Compile := List ((scalaSource in Compile ).value)
32- unmanagedSourceDirectories in Test := List ((scalaSource in Test ).value)
21+ OsgiKeys .bundleSymbolicName := " com.typesafe.scala-logging"
22+ OsgiKeys .privatePackage := Seq ()
23+ OsgiKeys .exportPackage := Seq (" com.typesafe.scalalogging*" )
3324
3425releaseVersionBump := sbtrelease.Version .Bump .Minor
3526releaseCrossBuild := true
3627releasePublishArtifactsAction := PgpKeys .publishSigned.value
3728
38- SbtScalariform .scalariformSettings
39-
40- ScalariformKeys .preferences := ScalariformKeys .preferences.value
41- .setPreference(AlignSingleLineCaseStatements , true )
42- .setPreference(AlignSingleLineCaseStatements .MaxArrowIndent , 100 )
43- .setPreference(DoubleIndentClassDeclaration , true )
44-
4529libraryDependencies ++= Dependencies .scalaLogging(scalaVersion.value)
4630
4731initialCommands := """ |import com.typesafe.scalalogging._
0 commit comments