diff options
author | lxohi <16010388+lxohi@users.noreply.github.com> | 2019-01-22 13:57:33 +0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2019-01-21 21:57:33 -0800 |
commit | eed2be071d9ca9bfcba756ff1078331548162893 (patch) | |
tree | 8d655d77c3dcb3489c20a99d2a900bac5bb30d93 /scalalib/src/PublishModule.scala | |
parent | b3efd5a5225afb385e5a75b0e06fd4554a4cb2a6 (diff) | |
download | mill-eed2be071d9ca9bfcba756ff1078331548162893.tar.gz mill-eed2be071d9ca9bfcba756ff1078331548162893.tar.bz2 mill-eed2be071d9ca9bfcba756ff1078331548162893.zip |
PublishModule: add --gpgKeyName flag (#530)
* PublishModule: adds gpgKeyName flag
* 1 - Intro to Mill.md: usage sample of publish updates for gpgKeyName
Diffstat (limited to 'scalalib/src/PublishModule.scala')
-rw-r--r-- | scalalib/src/PublishModule.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scalalib/src/PublishModule.scala b/scalalib/src/PublishModule.scala index 588781f4..cd1c436a 100644 --- a/scalalib/src/PublishModule.scala +++ b/scalalib/src/PublishModule.scala @@ -73,6 +73,7 @@ trait PublishModule extends JavaModule { outer => def publish(sonatypeCreds: String, gpgPassphrase: String = null, + gpgKeyName: String = null, signed: Boolean = true, release: Boolean): define.Command[Unit] = T.command { val PublishModule.PublishData(artifactInfo, artifacts) = publishArtifacts() @@ -81,6 +82,7 @@ trait PublishModule extends JavaModule { outer => sonatypeSnapshotUri, sonatypeCreds, Option(gpgPassphrase), + Option(gpgKeyName), signed, T.ctx().log ).publish(artifacts.map{case (a, b) => (a.path, b)}, artifactInfo, release) @@ -96,6 +98,7 @@ object PublishModule extends ExternalModule { def publishAll(sonatypeCreds: String, gpgPassphrase: String = null, + gpgKeyName: String = null, publishArtifacts: mill.main.Tasks[PublishModule.PublishData], release: Boolean = false, sonatypeUri: String = "https://oss.sonatype.org/service/local", @@ -110,6 +113,7 @@ object PublishModule extends ExternalModule { sonatypeSnapshotUri, sonatypeCreds, Option(gpgPassphrase), + Option(gpgKeyName), signed, T.ctx().log ).publishAll( |