Make Cassandra instrumentation Java 7 compatible
// Set properties before any plugins get loaded
ext {
- // Test use Cassandra 3 which requires Java 8. (Currently incompatible with Java 9.)
+ // TODO switch to container-based tests (away from cassandraunit)
+ // Tests use cassandraunit, which runs embedded Cassandra 3, which requires Java 8
+ // (and is currently incompatible with Java 9.)
minJavaVersionForTests = JavaVersion.VERSION_1_8
maxJavaVersionForTests = JavaVersion.VERSION_1_8
cassandraDriverTestVersions = "[3.0,4.0)"
@@ -9,6 +11,13 @@ ext {
apply from: "$rootDir/gradle/instrumentation.gradle"
apply plugin: 'org.unbroken-dome.test-sets'
+// TODO switch to container-based tests (away from cassandraunit)
+// then we can run tests using Java 7 (see above) and won't need this override section
+java {
+ sourceCompatibility = JavaVersion.VERSION_1_7
+ targetCompatibility = JavaVersion.VERSION_1_7
+}
+
muzzle {
pass {
