= Artifactory
:page-aliases: Plugin_Artifactory.adoc

This plugin allows publishing to Artifactory.

== Quickstart

[source,scala]
----
//| mvnDeps: ["com.lihaoyi::mill-contrib-artifactory:$MILL_VERSION"]

import mill.contrib.artifactory.ArtifactoryPublishModule

object mymodule extends ArtifactoryPublishModule {
  def artifactoryUri: String = "https://example.com/artifactory/my-repo"
  def artifactorySnapshotUri: String = "https://example.com/artifactory/my-snapshot-repo"

  ...
}
----

Then in your terminal:

[source,console]
----
$ mill mymodule.publishArtifactory --credentials $ARTIFACTORY_USER:$ARTIFACTORY_PASSWORD
----