title: How do I install Scala's Breeze library using Gradle?
body: <p>I know on <a href="https://github.com/scalanlp/breeze/wiki/Installation" rel="nofollow noreferrer">its website</a>, Breeze recommends to install using SBT.
  But the project I'm working on is using gradle, so I'm trying to figure out how do to specify the breeze info in build.gradle.</p>
  
  <p>Here is the simplified structure of the project:</p>
  
  <pre><code>.
  ├── build.gradle
  ├── settings.gradle
  └── src
      └── main
          └── scala
              └── MainFile.scala
  </code></pre>
  
  <p>My build.gradle file looks like the following</p>
  
  <pre><code>apply plugin: 'scala'
  
  repositories {
      jcenter()
  }
  
  dependencies {
      compile 'org.scala-lang:scala-library:2.10.4'
      compile group: 'org.scalanlp', name: 'breeze_2.10', version: '0.12'
  }
  
  jar {
      manifest {
          attributes 'Main-Class': 'MainFile'
      }
  
      exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
  }
  </code></pre>
  
  <p>And the MainFile.scala looks like the following:</p>
  
  <pre><code>import breeze.linalg._
  
  object MainFile {
  
    def main(args: Array[String]): Unit = {
      println("In Main")
  
      val x = DenseVector.zeros[Double](5)
    }
  }
  </code></pre>
  
  <p>To build the project, I run the following command from the command line in the source directory of the project:</p>
  
  <pre><code>&gt; ./gradlew clean build
  </code></pre>
  
  <p>which built successfully. </p>
  
  <p>But when I tried to run the jar file, I got the following error:</p>
  
  <pre><code>&gt; scala build/libs/Numerical.jar 
  java.lang.ClassNotFoundException: breeze.storage.Zero
          at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
  </code></pre>
  
  <p>Is anything missing in the gradle.build or the build process? </p>
  
  <p>Please pardon me for the dump question as I'm pretty new to the Java/Scala ecosystem. </p>