mirror of
https://github.com/sbt/sbt.git
synced 2026-08-22 06:07:24 +02:00
include Scala version to artifact names to match expected names for publishing
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
package sbt
|
||||
|
||||
final case class ArtifactName(base: String, version: String, config: String, tpe: String, ext: String)
|
||||
final case class ArtifactName(base: String, version: String, config: String, tpe: String, ext: String, cross: String)
|
||||
object ArtifactName
|
||||
{
|
||||
def show(name: ArtifactName) =
|
||||
@@ -11,6 +11,7 @@ object ArtifactName
|
||||
import name._
|
||||
val confStr = if(config.isEmpty || config == "compile") "" else "-" + config
|
||||
val tpeStr = if(tpe.isEmpty) "" else "-" + tpe
|
||||
base + "-" + version + confStr + tpeStr + "." + ext
|
||||
val addCross = if(cross.isEmpty) "" else "_" + cross
|
||||
base + addCross + "-" + version + confStr + tpeStr + "." + ext
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user