1
- import ScalaModulePlugin ._
2
-
3
- version in ThisBuild := " 0.2.1-SNAPSHOT"
4
-
5
1
resolvers in ThisBuild += " scala-integration" at " https://scala-ci.typesafe.com/artifactory/scala-integration/"
6
2
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
-
15
3
scalacOptions in ThisBuild ++= Seq (" -deprecation" , " -feature" /* , "-Xfatal-warnings"*/ )
16
4
17
5
cancelable in Global := true
18
6
19
- disablePublishing // in root
7
+ skip in publish := true // in root
8
+
9
+ lazy val commonSettings : Seq [Setting [_]] = Seq ()
20
10
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)))
35
11
commonSettings // in root
36
12
37
13
/** Create an OSGi version range for standard Scala / Lightbend versioning
@@ -45,7 +21,8 @@ def osgiImport(pattern: String, version: String): String =
45
21
pattern + " ;version=\" " + osgiVersionRange(version) + " \" "
46
22
47
23
lazy val core = project.in(file(" core" ))
48
- .settings(scalaModuleSettings)
24
+ .settings(ScalaModulePlugin .scalaModuleSettings)
25
+ .settings(ScalaModulePlugin .scalaModuleSettingsJVM)
49
26
.settings(commonSettings)
50
27
.settings(
51
28
name := " scala-parallel-collections" ,
@@ -58,7 +35,7 @@ lazy val core = project.in(file("core"))
58
35
),
59
36
// Use correct version for scala package imports
60
37
OsgiKeys .importPackage := Seq (osgiImport(" scala*" , scalaVersion.value), " *" ),
61
- mimaPreviousVersion := None
38
+ scalaModuleMimaPreviousVersion := None
62
39
)
63
40
64
41
lazy val junit = project.in(file(" junit" ))
@@ -69,7 +46,7 @@ lazy val junit = project.in(file("junit"))
69
46
libraryDependencies += " javax.xml.bind" % " jaxb-api" % " 2.3.1" % Test ,
70
47
testOptions += Tests .Argument (TestFrameworks .JUnit , " -a" , " -v" ),
71
48
fork in Test := true ,
72
- disablePublishing
49
+ skip in publish := true
73
50
).dependsOn(testmacros, core)
74
51
75
52
lazy val scalacheck = project.in(file(" scalacheck" ))
@@ -78,12 +55,12 @@ lazy val scalacheck = project.in(file("scalacheck"))
78
55
libraryDependencies += " org.scalacheck" %% " scalacheck" % " 1.14.0" ,
79
56
fork in Test := true ,
80
57
testOptions in Test += Tests .Argument (TestFrameworks .ScalaCheck , " -workers" , " 1" , " -minSize" , " 0" , " -maxSize" , " 4000" , " -minSuccessfulTests" , " 5" ),
81
- disablePublishing
58
+ skip in publish := true
82
59
).dependsOn(core)
83
60
84
61
lazy val testmacros = project.in(file(" testmacros" ))
85
62
.settings(commonSettings)
86
63
.settings(
87
64
libraryDependencies += scalaOrganization.value % " scala-compiler" % scalaVersion.value,
88
- disablePublishing
65
+ skip in publish := true
89
66
)
0 commit comments