diff options
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( |