@@ -11,6 +11,8 @@ import sbt.librarymanagement.ivy.IvyDependencyResolution
1111import sbt .librarymanagement .{UnresolvedWarningConfiguration , UpdateConfiguration }
1212import sbtdynver .DynVerPlugin
1313import sbtdynver .DynVerPlugin .autoImport .dynverGitDescribeOutput
14+ import xerial .sbt .Sonatype
15+ import xerial .sbt .Sonatype .autoImport .{sonatypeProfileName , sonatypeSessionName }
1416
1517object ScalaModulePlugin extends AutoPlugin {
1618 object autoImport {
@@ -28,6 +30,7 @@ object ScalaModulePlugin extends AutoPlugin {
2830 // Settings in here are implicitly `in ThisBuild`
2931 override def buildSettings : Seq [Setting [_]] = Seq (
3032 scalaModuleEnableOptimizerInlineFrom := " <sources>" ,
33+
3134 // drop # suffix from tags
3235 dynverGitDescribeOutput ~= (_.map(dv =>
3336 dv.copy(ref = sbtdynver.GitRef (dv.ref.value.split('#' ).head)))),
@@ -95,6 +98,13 @@ object ScalaModulePlugin extends AutoPlugin {
9598 |additional information regarding copyright ownership.
9699 | """ .stripMargin)),
97100
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+
98108 scmInfo := Some (ScmInfo (url(s " https://github.com/scala/ ${scalaModuleRepoName.value}" ),s " scm:git:git://github.com/scala/ ${scalaModuleRepoName.value}.git " )),
99109 homepage := Some (url(" http://www.scala-lang.org/" )),
100110 organizationHomepage := Some (url(" http://www.scala-lang.org/" )),
0 commit comments