Skip to content

Instantly share code, notes, and snippets.

@olim7t
Created July 26, 2019 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olim7t/1821be4861f3689e1e5186d6c2946d15 to your computer and use it in GitHub Desktop.
Save olim7t/1821be4861f3689e1e5186d6c2946d15 to your computer and use it in GitHub Desktop.
Test project to reproduce JAVA-1252, and check if JAVA-2365 will cause the same issue
scalaVersion in ThisBuild := "2.13.0" // 2.11.12 to reproduce JAVA-1252
organization in ThisBuild := "com.example"
lazy val hello = (project in file("."))
.settings(
name := "Hello",
resolvers += Resolver.mavenLocal,
libraryDependencies += "com.datastax.oss" % "java-driver-core" % "4.1.1-SNAPSHOT",
libraryDependencies += "com.datastax.dse" % "dse-java-driver-core" % "1.8.2"
)
// (in src/main/scala/example/)
package example
import com.datastax.oss.driver.api.core.cql.BatchType
import com.datastax.driver.dse.DseCluster
object Hello extends App {
// Test if JAVA-2365 creates a problem:
println(BatchType.LOGGED)
// Reproduce JAVA-1252 (Scala 2.11 only):
new DseCluster.Builder()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment