11import ScalaModulePlugin ._
22import sbtcrossproject .{crossProject , CrossType }
33import _root_ .scalafix .sbt .BuildInfo .{scalafixVersion , scala212 => scalafixScala212 }
4+ import sys .process ._
45
56lazy val commonSettings = Seq (
6- // this line could be removed after https://github.com/scala/sbt-scala-module/issues/48 is fixed
7- licenses := Seq ((" Apache-2.0" , url(" https://www.apache.org/licenses/LICENSE-2.0" ))),
87 headerLicense := Some (HeaderLicense .Custom (
98 s """ |Scala (https://www.scala-lang.org)
109 |
@@ -83,7 +82,7 @@ lazy val compat = MultiScalaCrossProject(JSPlatform, JVMPlatform)(
8382 val x = (baseDirectory in LocalRootProject ).value.toURI.toString
8483 val y = " https://raw.githubusercontent.com/scala/scala-collection-compat/" + sys.process
8584 .Process (" git rev-parse HEAD" )
86- .lines_ !
85+ .lineStream_ !
8786 .head
8887 s " -P:scalajs:mapSourceURI: $x-> $y/ "
8988 },
@@ -315,7 +314,7 @@ inThisBuild(
315314 state
316315 },
317316 commands += Command .command(" ci" ) { state =>
318- val toRun =
317+ val toRun : Seq [ String ] =
319318 if (isScalafmt) {
320319 Seq (" scalafmt-test" )
321320 } else {
@@ -359,7 +358,7 @@ inThisBuild(
359358 if (releaseVersion.nonEmpty && ! isBinaryCompat) {
360359 List (
361360 preRelease,
362- s " $projectPrefix/publish-signed "
361+ s " $projectPrefix/publishSigned "
363362 )
364363 } else {
365364 Nil
@@ -379,6 +378,7 @@ inThisBuild(
379378 toRun.foreach(println)
380379 println(" ---------" )
381380
382- toRun ::: state
381+ val newCommands = toRun.toList.map(Exec (_, None ))
382+ state.copy(remainingCommands = newCommands ::: state.remainingCommands)
383383 }
384384 ))
0 commit comments