To configure sbt to resolve artifacts from Artifactory, add this snippet to your build.sbt file:
resolvers +=
"Artifactory" at "https://[JFrogPlatformURL]/artifactory/<REPO_NAME>/"Where:
[JFrogPlatformURL]: The URL of your JPD<REPO_NAME>: The name of the target repository
For example:
resolvers +=
"Artifactory" at "https://company.jfrog.io/artifactory/sbt-virtual/"After adding this configuration, commands like sbt compile and sbt update will resolve artifacts from Artifactory.
Note
You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see Use Artifactory Set Me Up for Configuring Package Manager Clients.