1- import ScalaModulePlugin ._
2-
3- version in ThisBuild := " 0.2.1-SNAPSHOT"
4-
51resolvers in ThisBuild += " scala-integration" at " https://scala-ci.typesafe.com/artifactory/scala-integration/"
62
7- scalaVersionsByJvm in ThisBuild := {
8- val v213 = " 2.13.0"
9- Map (
10- 8 -> List (v213 -> true ),
11- 11 -> List (v213 -> false ),
12- 12 -> List (v213 -> false ))
13- }
14-
153scalacOptions in ThisBuild ++= Seq (" -deprecation" , " -feature" /* , "-Xfatal-warnings"*/ )
164
175cancelable in Global := true
186
19- disablePublishing // in root
7+ skip in publish := true // in root
8+
9+ lazy val commonSettings : Seq [Setting [_]] = Seq ()
2010
21- // not sure why `in ThisBuild` doesn't work for this; see
22- // https://github.com/sbt/sbt-header/issues/153
23- lazy val commonSettings = Seq (
24- headerLicense := Some (HeaderLicense .Custom (
25- s """ |Scala (https://www.scala-lang.org)
26- |
27- |Copyright EPFL and Lightbend, Inc.
28- |
29- |Licensed under Apache License 2.0
30- |(http://www.apache.org/licenses/LICENSE-2.0).
31- |
32- |See the NOTICE file distributed with this work for
33- |additional information regarding copyright ownership.
34- | """ .stripMargin)))
3511commonSettings // in root
3612
3713/** Create an OSGi version range for standard Scala / Lightbend versioning
@@ -45,7 +21,8 @@ def osgiImport(pattern: String, version: String): String =
4521 pattern + " ;version=\" " + osgiVersionRange(version) + " \" "
4622
4723lazy val core = project.in(file(" core" ))
48- .settings(scalaModuleSettings)
24+ .settings(ScalaModulePlugin .scalaModuleSettings)
25+ .settings(ScalaModulePlugin .scalaModuleSettingsJVM)
4926 .settings(commonSettings)
5027 .settings(
5128 name := " scala-parallel-collections" ,
@@ -58,7 +35,7 @@ lazy val core = project.in(file("core"))
5835 ),
5936 // Use correct version for scala package imports
6037 OsgiKeys .importPackage := Seq (osgiImport(" scala*" , scalaVersion.value), " *" ),
61- mimaPreviousVersion := None
38+ scalaModuleMimaPreviousVersion := None
6239)
6340
6441lazy val junit = project.in(file(" junit" ))
@@ -69,7 +46,7 @@ lazy val junit = project.in(file("junit"))
6946 libraryDependencies += " javax.xml.bind" % " jaxb-api" % " 2.3.1" % Test ,
7047 testOptions += Tests .Argument (TestFrameworks .JUnit , " -a" , " -v" ),
7148 fork in Test := true ,
72- disablePublishing
49+ skip in publish := true
7350).dependsOn(testmacros, core)
7451
7552lazy val scalacheck = project.in(file(" scalacheck" ))
@@ -78,12 +55,12 @@ lazy val scalacheck = project.in(file("scalacheck"))
7855 libraryDependencies += " org.scalacheck" %% " scalacheck" % " 1.14.0" ,
7956 fork in Test := true ,
8057 testOptions in Test += Tests .Argument (TestFrameworks .ScalaCheck , " -workers" , " 1" , " -minSize" , " 0" , " -maxSize" , " 4000" , " -minSuccessfulTests" , " 5" ),
81- disablePublishing
58+ skip in publish := true
8259).dependsOn(core)
8360
8461lazy val testmacros = project.in(file(" testmacros" ))
8562 .settings(commonSettings)
8663 .settings(
8764 libraryDependencies += scalaOrganization.value % " scala-compiler" % scalaVersion.value,
88- disablePublishing
65+ skip in publish := true
8966)
0 commit comments