@@ -11,6 +11,8 @@ import sbt.librarymanagement.ivy.IvyDependencyResolution
11
11
import sbt .librarymanagement .{UnresolvedWarningConfiguration , UpdateConfiguration }
12
12
import sbtdynver .DynVerPlugin
13
13
import sbtdynver .DynVerPlugin .autoImport .dynverGitDescribeOutput
14
+ import xerial .sbt .Sonatype
15
+ import xerial .sbt .Sonatype .autoImport .{sonatypeProfileName , sonatypeSessionName }
14
16
15
17
object ScalaModulePlugin extends AutoPlugin {
16
18
object autoImport {
@@ -28,6 +30,7 @@ object ScalaModulePlugin extends AutoPlugin {
28
30
// Settings in here are implicitly `in ThisBuild`
29
31
override def buildSettings : Seq [Setting [_]] = Seq (
30
32
scalaModuleEnableOptimizerInlineFrom := " <sources>" ,
33
+
31
34
// drop # suffix from tags
32
35
dynverGitDescribeOutput ~= (_.map(dv =>
33
36
dv.copy(ref = sbtdynver.GitRef (dv.ref.value.split('#' ).head)))),
@@ -95,6 +98,13 @@ object ScalaModulePlugin extends AutoPlugin {
95
98
|additional information regarding copyright ownership.
96
99
| """ .stripMargin)),
97
100
101
+ // The staging profile is called `org.scala-lang`, the default is `org.scala-lang.modules`
102
+ sonatypeProfileName := " org.scala-lang" ,
103
+
104
+ // The name of the staging repository. The default is `[sbt-sonatype] name version`.Since we
105
+ // cross-build using parallel travis jobs, we include the Scala version to make them unique.
106
+ sonatypeSessionName := { s " ${sonatypeSessionName.value} Scala ${scalaVersion.value}" },
107
+
98
108
scmInfo := Some (ScmInfo (url(s " https://github.com/scala/ ${scalaModuleRepoName.value}" ),s " scm:git:git://github.com/scala/ ${scalaModuleRepoName.value}.git " )),
99
109
homepage := Some (url(" http://www.scala-lang.org/" )),
100
110
organizationHomepage := Some (url(" http://www.scala-lang.org/" )),
0 commit comments