1
1
name := " junit-4.12"
2
2
3
- organization := " org.scalatestplus"
3
+ // need this because scalatest is not published for dotty 0.23 yet
4
+ val customBuild = Def .setting { scalaVersion.value.startsWith(" 0.23." ) }
5
+
6
+ organization := (if (customBuild.value) " com.sandinh" else " org.scalatestplus" )
4
7
5
8
version := " 3.1.1.0"
6
9
@@ -24,6 +27,7 @@ developers := List(
24
27
)
25
28
26
29
crossScalaVersions := List (" 2.10.7" , " 2.11.12" , " 2.12.11" , " 2.13.1" , " 0.22.0-RC1" , " 0.23.0-RC1" )
30
+ scalaVersion := " 0.23.0-RC1"
27
31
28
32
/** Add src/main/scala-{2|3} to Compile / unmanagedSourceDirectories */
29
33
Compile / unmanagedSourceDirectories +=
@@ -33,7 +37,7 @@ Compile / unmanagedSourceDirectories +=
33
37
})
34
38
35
39
libraryDependencies ++= Seq (
36
- " org.scalatest" %% " scalatest" % " 3.1.1" ,
40
+ ( if (customBuild.value) " com.sandinh " else " org.scalatest" ) %% " scalatest" % " 3.1.1" ,
37
41
" junit" % " junit" % " 4.13"
38
42
)
39
43
Test / scalacOptions ++= (if (isDotty.value) Seq (" -language:implicitConversions" ) else Nil )
@@ -82,19 +86,10 @@ OsgiKeys.additionalHeaders:= Map(
82
86
" Bundle-Vendor" -> " Artima, Inc."
83
87
)
84
88
85
- publishTo := {
86
- val nexus = " https://oss.sonatype.org/"
87
- Some (" publish-releases" at nexus + " service/local/staging/deploy/maven2" )
88
- }
89
+ publishTo := sonatypePublishToBundle.value
89
90
90
91
publishMavenStyle := true
91
92
92
93
publishArtifact in Test := false
93
94
94
95
pomIncludeRepository := { _ => false }
95
-
96
- credentials += Credentials (Path .userHome / " .ivy2" / " .credentials" )
97
-
98
- pgpSecretRing := file((Path .userHome / " .gnupg" / " secring.gpg" ).getAbsolutePath)
99
-
100
- pgpPassphrase := None
0 commit comments