Execution failed for task ':compileScala'

Hi All,

I am calling Scala Function from Java main program and I want to build it as Runnable jar. While building, it I am getting the below error.

gradle clean build

:clean
:compileJava UP-TO-DATE
:compileScala FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileScala'.
> xsbti/CompileFailed

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 4.604 secs

Below is my build.gradle file.

apply plugin: "scala"
apply plugin: "eclipse"
apply plugin: "java"

sourceSets {
    main {
        scala {
            srcDirs = ['src/main/java']
        }
        java {
            srcDirs = []
        }
}
}

	repositories {
		
		flatDir {
        dirs "$projectDir/lib"
    }


		maven {
			url = "http://www.nexus.xxx.com/content/groups/public/"
		}
		maven {
			credentials {
				username "$mavenUser"
				password "$mavenPassword"
			}
			url = "http://www.nexus.xxxx.com/content/repositories/hcoe_private_release_repository/"
		}
		
	}
	
	

dependencies{
    
	//compile "org.scala-lang:scala-library:2.10.5"
	compile files("lib/scala-library-2.10.5.jar")
	compile files("lib/scala-compiler-2.10.5.jar")
	compile files("lib/scala-reflect-2.10.4.jar")
	compile files("lib/zinc-0.3.7.jar")
	compile files("lib/spark-core_2.10-1.6.1.jar")
	zinc "com.typesafe.zinc:zinc:0.3.7"
	
    
    //compile 'org.apache.spark:spark-core_2.11:2.0.1'
    
}

jar {


		manifest.attributes("Main-Class": 'com.ford.spark.scala.MainClass')
		baseName = 'fbr_spark'
		from configurations.runtime.collect { zipTree(it) }
		exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
	}