Skip to content

Commit ab2227d

Browse files
committed
publish for dotty 0.23 in com.sandinh org
1 parent af08467 commit ab2227d

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

build.sbt

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name := "junit-4.12"
22

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")
47

58
version := "3.1.1.0"
69

@@ -24,6 +27,7 @@ developers := List(
2427
)
2528

2629
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"
2731

2832
/** Add src/main/scala-{2|3} to Compile / unmanagedSourceDirectories */
2933
Compile / unmanagedSourceDirectories +=
@@ -33,7 +37,7 @@ Compile / unmanagedSourceDirectories +=
3337
})
3438

3539
libraryDependencies ++= Seq(
36-
"org.scalatest" %% "scalatest" % "3.1.1",
40+
(if (customBuild.value) "com.sandinh" else "org.scalatest") %% "scalatest" % "3.1.1",
3741
"junit" % "junit" % "4.13"
3842
)
3943
Test / scalacOptions ++= (if (isDotty.value) Seq("-language:implicitConversions") else Nil)
@@ -82,19 +86,10 @@ OsgiKeys.additionalHeaders:= Map(
8286
"Bundle-Vendor" -> "Artima, Inc."
8387
)
8488

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
8990

9091
publishMavenStyle := true
9192

9293
publishArtifact in Test := false
9394

9495
pomIncludeRepository := { _ => false }
95-
96-
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
97-
98-
pgpSecretRing := file((Path.userHome / ".gnupg" / "secring.gpg").getAbsolutePath)
99-
100-
pgpPassphrase := None

project/plugins.sbt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.2")
55
addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.9.5")
66

77
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.4.0")
8+
9+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.8.1")

0 commit comments

Comments
 (0)