Jenkins + sbt-assembly + Artifactory
<p>We have the following:</p>

<p>1) Jenkins + Artifactory + Java + Spark(scala)</p>

<p>Our goal is to publish an uber jar to our artifactory repo by using sbt-assembly or the like. </p>

<p>We have two Java Maven projects being built by Jenkins and published to Artifactory. </p>

<p>We have a Spark/Scala project which depends upon the two Java Maven Projects and is able to be built with Jenkins with the following sbt commands:</p>

<p>1) clean assembly : builds an uber jar file in the projects/target dir, yet "<strong>does not</strong>" publish to our artifactory repo</p>

<p>2) clean publish : builds a standard jar file (no dependencies) and "<strong>does</strong>" publish the stamdard jar file to our artifactory repo.</p>

<p>3) clean assembly publish : does both 1 &amp; 2 yet only publishes the standard jar file to artifactory repo.</p>

<p>Our <strong>Build.sbt</strong> is large (Contents regarding repo):</p>

<pre><code>publishTo := Some("Artifactory Realm" at "http://artifactory_company.com:8081/artifactory/libs-release-local")

credentials += Credentials("Artifactory Realm", "artifactory_company.com", "admin", "admin!")

isSnapshot := true
</code></pre>

<p><strong>project/plugins.sbt :</strong></p>

<pre><code>addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0-RC2")

addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.2")

resolvers += Resolver.url("artifactory", url("http://artifactory_company.com:8081/artifactory/libs-release-local"))(Resolver.ivyStylePatterns)
</code></pre>

<p>Any assistance is gratefully appreciated. </p>