build.sbt 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. name := """qore"""
  2. organization := "in.qamra"
  3. version := "1.0-SNAPSHOT"
  4. //TODO: Generate classes for EAD schema using scalaxb sbt-plugin
  5. //lazy val scalaXml = "org.scala-lang.modules" %% "scala-xml" % "1.0.2"
  6. //lazy val scalaParser = "org.scala-lang.modules" %% "scala-parser-combinators" % "1.0.1"
  7. //lazy val dispatchV = "0.11.3"
  8. //lazy val dispatch = "net.databinder.dispatch" %% "dispatch-core" % dispatchV
  9. lazy val root = (project in file("."))
  10. .enablePlugins(
  11. PlayScala)
  12. // GraphQLSchemaPlugin,
  13. // GraphQLQueryPlugin,
  14. // GraphQLCodegenPlugin,
  15. // ScalaxbPlugin)
  16. .settings(
  17. name := "qore"
  18. // scalaxbDispatchVersion in (Compile, scalaxb) := dispatchV,
  19. // scalaxbPackageName in (Compile, scalaxb) := "generated",
  20. // scalaxbPackageName in (Compile, scalaxb) := "generated"
  21. // scalaxbPackageNames in (Compile, scalaxb) := Map(uri("http://schemas.microsoft.com/2003/10/Serialization/") -> "microsoft.serialization"),
  22. // logLevel in (Compile, scalaxb) := Level.Debug
  23. )
  24. scalaVersion := "2.12.6"
  25. fork := true
  26. offline := true
  27. libraryDependencies += guice
  28. libraryDependencies += "org.scalatestplus.play" %% "scalatestplus-play" % "4.0.3" % Test
  29. libraryDependencies += "org.sangria-graphql" %% "sangria" % "1.4.2"
  30. //libraryDependencies += "org.sangria-graphql" %% "sangria-circe" % "1.2.1"
  31. libraryDependencies += "org.sangria-graphql" %% "sangria-play-json" % "1.0.5"
  32. libraryDependencies += "com.vitorsvieira" %% "scala-iso" % "0.1.2"
  33. libraryDependencies += "org.scala-lang.modules" %% "scala-xml" % "1.2.0"
  34. libraryDependencies += "com.michaelpollmeier" %% "gremlin-scala" % "3.4.4.3"
  35. libraryDependencies += "org.apache.tinkerpop" % "neo4j-gremlin" % "3.4.3"
  36. libraryDependencies += "org.neo4j" % "neo4j-tinkerpop-api-impl" % "0.7-3.2.3"
  37. //libraryDependencies ++= Seq(dispatch)
  38. //libraryDependencies ++= {
  39. // if (scalaVersion.value startsWith "2.10") Seq()
  40. // else Seq(scalaXml, scalaParser)
  41. //}
  42. //enablePlugins(GraphQLSchemaPlugin, GraphQLQueryPlugin)
  43. // Adds additional packages into Twirl
  44. //TwirlKeys.templateImports += "in.qamra.controllers._"
  45. // Adds additional packages into conf/routes
  46. // play.sbt.routes.RoutesKeys.routesImport += "in.qamra.binders._"
  47. //graphqlCodegenStyle := Sangria
  48. //
  49. //graphqlSchemas += GraphQLSchema(
  50. // "qore",
  51. // "QORE schema",
  52. // Def.task(
  53. // GraphQLSchemaLoader
  54. //// .fromFile((resourceManaged in Compile).value / "schema.graphql")
  55. // .fromIntrospection("http://try.sangria-graphql.org/graphql", streams.value.log)
  56. // .loadSchema()
  57. // ).taskValue
  58. //)
  59. //graphqlCodegenSchema := graphqlRenderSchema.toTask("qore").value