Skip to content

Commit

Permalink
Allow specifying classifier for default package in deployment settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojciech Pitula authored and muuki88 committed Jun 6, 2017
1 parent 8f5137c commit 7704e98
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/scala/com/typesafe/sbt/packager/SettingsHelper.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ object SettingsHelper {
)
)

def makeDeploymentSettings(config: Configuration, packageTask: TaskKey[File], extension: String): Seq[Setting[_]] =
def makeDeploymentSettings(config: Configuration,
packageTask: TaskKey[File],
extension: String,
classifier: Option[String] = None): Seq[Setting[_]] =
inConfig(config)(Classpaths.publishSettings) ++ inConfig(config)(
Seq(
artifacts := Seq.empty,
Expand Down Expand Up @@ -55,5 +58,5 @@ object SettingsHelper {
overwrite = isSnapshot.value
)
)
) ++ addPackage(config, packageTask, extension)
) ++ addPackage(config, packageTask, extension, classifier)
}

0 comments on commit 7704e98

Please sign in to comment.