diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-06 22:15:37 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-06 22:42:21 -0800 |
commit | bb4f2691f26f20dd8e6bdc1108eef9a83af0944e (patch) | |
tree | e81661dcfe7a9792fadca2269ec22f61bd1fbf2b /scalalib/src | |
parent | b97acb6f671502f57134932d0e7908e333b7cbbe (diff) | |
parent | 3eaa2a12bbe6ee4ecf6d8f839b60f2e000c4d1a1 (diff) | |
download | mill-bb4f2691f26f20dd8e6bdc1108eef9a83af0944e.tar.gz mill-bb4f2691f26f20dd8e6bdc1108eef9a83af0944e.tar.bz2 mill-bb4f2691f26f20dd8e6bdc1108eef9a83af0944e.zip |
Merge branch 'master' of github.com:lihaoyi/mill
Diffstat (limited to 'scalalib/src')
-rw-r--r-- | scalalib/src/mill/scalalib/PublishModule.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scalalib/src/mill/scalalib/PublishModule.scala b/scalalib/src/mill/scalalib/PublishModule.scala index aef8b456..30fbb4c5 100644 --- a/scalalib/src/mill/scalalib/PublishModule.scala +++ b/scalalib/src/mill/scalalib/PublishModule.scala @@ -88,10 +88,10 @@ trait PublishModule extends ScalaModule { outer => object PublishModule extends ExternalModule{ def publishAll(sonatypeCreds: String, gpgPassphrase: String, + publishArtifacts: Seq[mill.T[(mill.scalalib.publish.Artifact, Seq[(PathRef, String)])]], sonatypeUri: String = "https://oss.sonatype.org/service/local", - sonatypeSnapshotUri: String = "https://oss.sonatype.org/content/repositories/snapshots", - publishInfo: Seq[mill.T[(mill.scalalib.publish.Artifact, Seq[(PathRef, String)])]] = Nil) = T.command{ - val x: Seq[(Seq[(Path, String)], Artifact)] = Task.sequence(publishInfo)().map{ + sonatypeSnapshotUri: String = "https://oss.sonatype.org/content/repositories/snapshots") = T.command{ + val x: Seq[(Seq[(Path, String)], Artifact)] = Task.sequence(publishArtifacts)().map{ case (a, s) => (s.map{case (p, f) => (p.path, f)}, a) } new SonatypePublisher( |