[SPARK-2682] Javadoc generated from Scala source code is not in javadoc's index

Add genjavadocSettings back to SparkBuild and resolve Java compiling errors caused by using Java keywords as value names.

https://issues.apache.org/jira/browse/SPARK-2682