<commit_before># Documentation

## Building

### Scala Versions
You can choose to build, assemble and run both Spark and the Spark Cassandra Connector against Scala 2.10 or 2.11.

#### Scala 2.11
Running SBT with the following builds against Scala 2.11 and the generated artifact paths coincide with
the `binary.version` thereof:

    sbt -Dscala-2.11=true

For Spark see: [Building Spark for Scala 2.11](http://spark.apache.org/docs/1.2.0/building-spark.html)

For Scala 2.11 tasks:

    sbt -Dscala-2.11=true doc
    sbt -Dscala-2.11=true package
    sbt -Dscala-2.11=true assembly

**Note:** The Spark Java API is currently not buildable with Scala 2.11; see [SPARKC-130](https://datastax-oss.atlassian.net/browse/SPARKC-130).

#### Scala 2.10
To use Scala 2.10 nothing extra is required.

#### Version Cross Build
This produces artifacts for both versions:
Start SBT:

     sbt -Dscala-2.11=true

Run in the SBT shell:

     + package


### Building The Assembly Jar
In the root directory run

    sbt assembly

To build the assembly jar against Scala 2.11:

     sbt -Dscala-2.11=true assembly

A fat jar will be generated to both of these directories:
   - `spark-cassandra-connector/target/scala-{binary.version}/`
   - `spark-cassandra-connector-java/target/scala-{binary.version}/`<commit_msg>SPARKC-130: clarify that Spark Java API issue with Scala 2.11 is fixed now<commit_after># Documentation

## Building

### Scala Versions
You can choose to build, assemble and run both Spark and the Spark Cassandra Connector against Scala 2.10 or 2.11.

#### Scala 2.11
Running SBT with the following builds against Scala 2.11 and the generated artifact paths coincide with
the `binary.version` thereof:

    sbt -Dscala-2.11=true

For Spark see: [Building Spark for Scala 2.11](http://spark.apache.org/docs/1.2.0/building-spark.html)

For Scala 2.11 tasks:

    sbt -Dscala-2.11=true doc
    sbt -Dscala-2.11=true package
    sbt -Dscala-2.11=true assembly

Note: The Spark Java API was not buildable with Scala 2.11 until connector 1.2.2 (fixed via [SPARKC-130](https://datastax-oss.atlassian.net/browse/SPARKC-130)).

#### Scala 2.10
To use Scala 2.10 nothing extra is required.

#### Version Cross Build
This produces artifacts for both versions:
Start SBT:

     sbt -Dscala-2.11=true

Run in the SBT shell:

     + package


### Building The Assembly Jar
In the root directory run

    sbt assembly

To build the assembly jar against Scala 2.11:

     sbt -Dscala-2.11=true assembly

A fat jar will be generated to both of these directories:
   - `spark-cassandra-connector/target/scala-{binary.version}/`
   - `spark-cassandra-connector-java/target/scala-{binary.version}/`
{'fraction_non_alphanumeric': 0.10145468108914583, 'fraction_numerical': 0.04587840358075345, 'mean_word_length': 3.561224489795918, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7566744', 'n_tokens_mistral': 993, 'n_tokens_neox': 856, 'n_words': 308}