Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
plugins {
id 'java-library'
id 'com.github.hierynomus.license' version '0.15.0' apply false
id 'com.github.johnrengelman.shadow' version '4.0.3' apply false
id 'com.github.alisiikh.scalastyle_2.12' version '2.1.0' apply false
id 'com.github.alisiikh.scalastyle' version '3.5.0' apply false
id 'me.champeau.gradle.jmh' version '0.4.8' apply false
id "ch.kk7.spawn" version "1.0.20180924200750" apply false
}
Expand All @@ -18,26 +19,29 @@ apply from: 'build.licenses.gradle'

subprojects {
apply plugin: 'scala'
apply plugin: 'java-library'

repositories {
mavenCentral()
mavenLocal()
}

dependencies {
compile group: 'org.scala-lang', name: 'scala-library', version: ver.scala.full
implementation group: 'org.scala-lang', name: 'scala-library', version: ver.scala.full

// Seems we need to lock these down, otherwise we get runtime errors on reflection
compile group: 'org.scala-lang', name: 'scala-reflect', version: ver.scala.full
compile group: 'org.scala-lang', name: 'scala-compiler', version: ver.scala.full

compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: ver.log4j.main
compile group: 'org.apache.logging.log4j', name: "log4j-api-scala".scala(), version: ver.log4j.scala

testCompile group: 'org.apache.logging.log4j', name: 'log4j-core', version: ver.log4j.main
testCompile group: 'org.scalatest', name: "scalatest".scala(), version: ver.scalatest
testCompile group: 'org.scalacheck', name: "scalacheck".scala(), version: ver.scalacheck
testCompile group: 'org.junit.platform', name: 'junit-platform-runner', version: ver.junit.runner
implementation group: 'org.scala-lang', name: 'scala-reflect', version: ver.scala.full
implementation group: 'org.scala-lang', name: 'scala-compiler', version: ver.scala.full

implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: ver.log4j.main
implementation group: 'org.apache.logging.log4j', name: "log4j-api-scala".scala(), version: ver.log4j.scala

testImplementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: ver.log4j.main
testImplementation group: 'org.scalatest', name: "scalatest".scala(), version: ver.scalatest
testImplementation group: 'org.scalacheck', name: "scalacheck".scala(), version: ver.scalacheck
testImplementation group: 'junit', name: 'junit', version: ver.junit.main
testImplementation group: 'org.mockito', name: 'mockito-all', version: ver.mockito
testRuntimeOnly group: 'org.junit.platform', name: 'junit-platform-runner', version: ver.junit.runner
}

test {
Expand Down
3 changes: 2 additions & 1 deletion build.params.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ext {
jvm : '1.8',

scala : [major: '2.12',
full : '2.12.8'],
full : '2.12.20'],

cypher : [frontend: '9.0.20190305',
tck : '1.0.0-M14'],
Expand Down Expand Up @@ -39,6 +39,7 @@ ext {

junit : [main : '4.12',
runner: '1.0.2'],
apache: [commons: [text: '1.14.0']]
]

}
Expand Down
5 changes: 3 additions & 2 deletions build.style.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
subprojects {
apply plugin: 'com.github.alisiikh.scalastyle'.scala()
apply plugin: 'com.github.alisiikh.scalastyle'

scalaStyle {
scalastyle {
scalaVersion = ver.scala.major
config = rootProject.file("etc/scalastyle_config.xml")
}
}
3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Fri Dec 07 11:38:19 CET 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-all.zip
9 changes: 5 additions & 4 deletions graph-ddl/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
description = 'Graph DDL'

dependencies {
compile project(':okapi-trees')
compile project(':okapi-api')
api project(':okapi-trees')
api project(':okapi-api')

compile group: 'com.lihaoyi', name: "fastparse".scala(), version: ver.fastparse
implementation group: 'com.lihaoyi', name: "fastparse".scala(), version: ver.fastparse
implementation group: 'org.typelevel', name: "cats-core".scala(), version: ver.cats

testCompile project(':okapi-testing')
testImplementation project(':okapi-testing')
}
21 changes: 15 additions & 6 deletions morpheus-examples/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
description = 'Collection of examples for Cypher for Apache Spark'

dependencies {
compile project(':morpheus-spark-cypher')
compile project(':morpheus-testing')
api project(':morpheus-spark-cypher')
api project(':morpheus-testing')

compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: ver.log4j.main
compile group: 'org.apache.spark', name: "spark-graphx".scala(), version: ver.spark
compile group: 'io.netty', name: 'netty-all', version: ver.netty
compile group: 'com.h2database', name: 'h2', version: ver.h2
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: ver.log4j.main
implementation group: 'org.apache.spark', name: "spark-graphx".scala(), version: ver.spark
implementation group: 'org.apache.spark', name: "spark-sql".scala(), version: ver.spark
implementation(group: 'org.apache.spark', name: "spark-catalyst".scala(), version: ver.spark) {
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
}
implementation group: 'io.netty', name: 'netty-all', version: ver.netty
implementation group: 'com.h2database', name: 'h2', version: ver.h2
implementation(group: 'com.lihaoyi', name: "upickle".scala(), version: ver.upickle) {
exclude group: 'com.lihaoyi', module: 'utest'.scala()
exclude group: 'com.lihaoyi', module: 'acyclic'.scala()
}
implementation group: 'org.neo4j.driver', name: 'neo4j-java-driver', version: ver.neo4j.driver
}

tasks.test.dependsOn(":okapi-neo4j-io-testing:neo4jStart")
Expand Down
8 changes: 4 additions & 4 deletions morpheus-jmh/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ apply plugin: 'me.champeau.gradle.jmh'
description = 'Micro benchmarks for Cypher for Apache Spark'

dependencies {
compile project(':morpheus-spark-cypher')
api project(':morpheus-spark-cypher')

compile(group: 'org.apache.spark', name: "spark-core".scala(), version: ver.spark) {
implementation(group: 'org.apache.spark', name: "spark-core".scala(), version: ver.spark) {
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
}
compile(group: 'org.apache.spark', name: "spark-sql".scala(), version: ver.spark) {
implementation(group: 'org.apache.spark', name: "spark-sql".scala(), version: ver.spark) {
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
}
compile(group: 'org.apache.spark', name: "spark-catalyst".scala(), version: ver.spark) {
implementation(group: 'org.apache.spark', name: "spark-catalyst".scala(), version: ver.spark) {
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
}
}
Expand Down
14 changes: 7 additions & 7 deletions morpheus-spark-cypher/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ if (project.hasProperty('testOkapiShade')) {
}
}
dependencies {
compile group: 'org.opencypher', name: 'okapi-shade', version: ver.self
implementation group: 'org.opencypher', name: 'okapi-shade', version: ver.self
}
}

dependencies {
compile project(':okapi-relational')
compile project(':okapi-neo4j-io')
compile project(':graph-ddl')
api project(':okapi-relational')
api project(':okapi-neo4j-io')
api project(':graph-ddl')

compile(group: 'com.lihaoyi', name: "upickle".scala(), version: ver.upickle) {
implementation(group: 'com.lihaoyi', name: "upickle".scala(), version: ver.upickle) {
exclude group: 'com.lihaoyi', module: 'utest'.scala()
exclude group: 'com.lihaoyi', module: 'acyclic'.scala()
}
compile group: 'org.typelevel', name: "cats-core".scala(), version: ver.cats
compile group: 'org.neo4j.driver', name: 'neo4j-java-driver', version: ver.neo4j.driver
implementation group: 'org.typelevel', name: "cats-core".scala(), version: ver.cats
implementation group: 'org.neo4j.driver', name: 'neo4j-java-driver', version: ver.neo4j.driver

compileOnly group: 'org.apache.spark', name: "spark-core".scala(), version: ver.spark
compileOnly group: 'org.apache.spark', name: "spark-sql".scala(), version: ver.spark
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,10 @@ object SqlGraphSources {
SqlPropertyGraphDataSource(graphDdl, sqlDataSourceConfigs, idGenerationStrategy)
}

def apply(graphDdlPath: String)(implicit morpheus: MorpheusSession): SqlGraphSourceFactory =
SqlGraphSources(GraphDdl(using(Source.fromFile(graphDdlPath, "UTF-8"))(_.mkString)))
def apply(graphDdlPath: String)(implicit morpheus: MorpheusSession): SqlGraphSourceFactory = {
val content = using(Source.fromFile(graphDdlPath, "UTF-8"))(_.mkString)
SqlGraphSources(GraphDdl(content))
}

def apply(graphDdl: GraphDdl)(implicit morpheus: MorpheusSession): SqlGraphSourceFactory =
SqlGraphSourceFactory(graphDdl = graphDdl, idGenerationStrategy = SerializedId)
Expand Down
9 changes: 5 additions & 4 deletions morpheus-tck/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ sourceSets{
}

dependencies {
testCompile project(':okapi-tck')
testCompile project(':morpheus-testing')
generatorCompile project(':okapi-tck')
generatorCompile project(':morpheus-testing')
testImplementation project(':okapi-tck')
testImplementation project(':morpheus-testing')
testImplementation group: 'org.apache.spark', name: "spark-sql".scala(), version: ver.spark
generatorImplementation project(':okapi-tck')
generatorImplementation project(':morpheus-testing')
}

// split scenario name / key-words with | --> debugTCKScenarios -Pscenarios = 'sc1|sc2|..'
Expand Down
27 changes: 17 additions & 10 deletions morpheus-testing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,26 @@ apply plugin: 'ch.kk7.spawn'
description = 'Cypher for Apache Spark - Test Utilities'

dependencies {
compile project(':morpheus-spark-cypher')
compile project(':okapi-testing')
compile project(':okapi-neo4j-io-testing')
api project(':morpheus-spark-cypher')
api project(':okapi-testing')
api project(':okapi-neo4j-io-testing')

compile group: 'org.apache.spark', name: "spark-core".scala(), version: ver.spark
compile group: 'org.apache.spark', name: "spark-sql".scala(), version: ver.spark
compile group: 'org.apache.spark', name: "spark-hive".scala(), version: ver.spark
compile group: 'org.apache.hadoop', name: 'hadoop-minicluster', version: ver.hadoop
implementation group: 'org.apache.spark', name: "spark-core".scala(), version: ver.spark
implementation group: 'org.apache.spark', name: "spark-sql".scala(), version: ver.spark
implementation group: 'org.apache.spark', name: "spark-hive".scala(), version: ver.spark
implementation group: 'org.apache.hadoop', name: 'hadoop-minicluster', version: ver.hadoop

testCompile project(':okapi-api').sourceSets.test.output
testCompile group: 'com.h2database', name: 'h2', version: ver.h2
testCompile group: 'org.spire-math', name: 'claimant'.scala(), version: ver.claimant
implementation group: 'org.scalatest', name: "scalatest".scala(), version: ver.scalatest
implementation group: 'org.mockito', name: 'mockito-all', version: ver.mockito

testImplementation project(':okapi-api').sourceSets.test.output
testImplementation group: 'com.h2database', name: 'h2', version: ver.h2
testImplementation group: 'org.spire-math', name: 'claimant'.scala(), version: ver.claimant
testImplementation(group: 'com.lihaoyi', name: "upickle".scala(), version: ver.upickle) {
exclude group: 'com.lihaoyi', module: 'utest'.scala()
exclude group: 'com.lihaoyi', module: 'acyclic'.scala()
}
testImplementation group: 'org.opencypher', name: 'front-end-9.0', version: ver.cypher.frontend
}

tasks.test.dependsOn(":okapi-neo4j-io-testing:neo4jStart")
Expand Down
17 changes: 8 additions & 9 deletions okapi-api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
description = 'Okapi - openCypher API'

dependencies {
compile project(':okapi-trees')
api project(':okapi-trees')

compile(group: 'org.opencypher', name: 'front-end-9.0', version: ver.cypher.frontend) {
implementation(group: 'org.opencypher', name: 'front-end-9.0', version: ver.cypher.frontend) {
exclude group: 'org.scalacheck', module: 'scalacheck'.scala()
}

compile group: 'org.typelevel', name: "cats-core".scala(), version: ver.cats
compile(group: 'com.lihaoyi', name: "upickle".scala(), version: ver.upickle) {
implementation group: 'org.typelevel', name: "cats-core".scala(), version: ver.cats
implementation(group: 'com.lihaoyi', name: "upickle".scala(), version: ver.upickle) {
exclude group: 'com.lihaoyi', module: 'utest'.scala()
exclude group: 'com.lihaoyi', module: 'acyclic'.scala()
}
compile group: 'com.lihaoyi', name: "fastparse".scala(), version: ver.fastparse
implementation group: 'com.lihaoyi', name: "fastparse".scala(), version: ver.fastparse

testCompile group: "org.typelevel", name: "discipline".scala(), version: ver.discipline
testCompile group: "org.typelevel", name: "cats-laws".scala(), version: ver.cats
testCompile group: 'org.mockito', name: 'mockito-all', version: ver.mockito
testCompile group: 'junit', name: 'junit', version: ver.junit.main
testImplementation group: "org.typelevel", name: "discipline".scala(), version: ver.discipline
testImplementation group: "org.typelevel", name: "cats-laws".scala(), version: ver.cats
testImplementation group: 'junit', name: 'junit', version: ver.junit.main
}
14 changes: 9 additions & 5 deletions okapi-ir/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
description = 'Okapi IR - Declarative representation of Cypher queries'

dependencies {
compile project(':okapi-api')
api project(':okapi-api')

compile group: 'org.atnos', name: "eff".scala(), version: ver.eff
implementation group: 'org.opencypher', name: 'expressions-9.0', version: ver.cypher.frontend
implementation group: 'org.opencypher', name: 'ast-9.0', version: ver.cypher.frontend
implementation group: 'org.opencypher', name: 'rewriting-9.0', version: ver.cypher.frontend
implementation group: 'org.opencypher', name: 'front-end-9.0', version: ver.cypher.frontend
implementation group: 'org.atnos', name: "eff".scala(), version: ver.eff

testCompile project(':okapi-testing')
testImplementation project(':okapi-testing')

testCompile group: 'org.opencypher', name: 'ast-9.0', version: ver.cypher.frontend, classifier: 'tests'
testCompile group: 'org.opencypher', name: 'util-9.0', version: ver.cypher.frontend, classifier: 'tests'
testImplementation group: 'org.opencypher', name: 'util-9.0', version: ver.cypher.frontend, classifier: 'tests'
testImplementation group: 'org.opencypher', name: 'ast-9.0', version: ver.cypher.frontend, classifier: 'tests'
}
7 changes: 5 additions & 2 deletions okapi-logical/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
description = 'Okapi Logical - Logical representation of Cypher queries'

dependencies {
compile project(':okapi-ir')
api project(':okapi-ir')

testCompile project(':okapi-testing')
implementation group: 'org.opencypher', name: 'expressions-9.0', version: ver.cypher.frontend

testImplementation project(':okapi-testing')
testImplementation group: 'org.opencypher', name: 'front-end-9.0', version: ver.cypher.frontend
}
12 changes: 7 additions & 5 deletions okapi-neo4j-io-testing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ sourceSets {
}

dependencies {
compile project(':okapi-neo4j-io')
compile project(':okapi-testing')
api project(':okapi-neo4j-io')
api project(':okapi-testing')

compile group: 'org.bouncycastle', name: 'bctls-jdk15on', version: ver.bctls
implementation group: 'org.neo4j.driver', name: 'neo4j-java-driver', version: ver.neo4j.driver
implementation group: 'org.bouncycastle', name: 'bctls-jdk15on', version: ver.bctls
implementation group: 'org.scalatest', name: "scalatest".scala(), version: ver.scalatest

servicesCompile group: 'org.neo4j.test', name: 'neo4j-harness', version: ver.neo4j.harness
servicesCompile group: 'org.neo4j.test', name: 'neo4j-harness-enterprise', version: ver.neo4j.harness
servicesImplementation group: 'org.neo4j.test', name: 'neo4j-harness', version: ver.neo4j.harness
servicesImplementation group: 'org.neo4j.test', name: 'neo4j-harness-enterprise', version: ver.neo4j.harness
}

def neo4jLauncher(String launcher, int instances, String starter, String stopper, String status) {
Expand Down
4 changes: 2 additions & 2 deletions okapi-neo4j-io/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description = 'Okapi - Neo4j IO'

dependencies {
compile project(':okapi-api')
api project(':okapi-api')

compile group: 'org.neo4j.driver', name: 'neo4j-java-driver', version: ver.neo4j.driver
implementation group: 'org.neo4j.driver', name: 'neo4j-java-driver', version: ver.neo4j.driver
}
7 changes: 5 additions & 2 deletions okapi-relational/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ apply plugin: 'com.github.johnrengelman.shadow'
description = 'Okapi Relational - Relational Algebra for Cypher'

dependencies {
compile project(':okapi-logical')
api project(':okapi-logical')

testCompile project(':okapi-testing')
implementation group: 'org.opencypher', name: 'front-end-9.0', version: ver.cypher.frontend
implementation group: 'org.typelevel', name: "cats-core".scala(), version: ver.cats

testImplementation project(':okapi-testing')
}

shadowJar {
Expand Down
2 changes: 1 addition & 1 deletion okapi-shade/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'com.github.johnrengelman.shadow'
description = 'Okapi Shade contains the full Okapi stack and its relocated dependencies'

dependencies {
compile project(':okapi-relational')
api project(':okapi-relational')
}

ext.excludedDependencyGroups = [
Expand Down
10 changes: 6 additions & 4 deletions okapi-tck/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
description = 'Okapi TCK - TCK integration for the Okapi pipeline'

dependencies {
compile project(':okapi-testing')
compile project(':okapi-ir')
api project(':okapi-testing')
api project(':okapi-ir')

compile group: 'org.opencypher', name: 'tck', version: ver.cypher.tck
compile group: 'org.opencypher', name: 'tck-api'.scala(), version: ver.cypher.tck
api group: 'org.opencypher', name: 'tck', version: ver.cypher.tck
api group: 'org.opencypher', name: 'tck-api'.scala(), version: ver.cypher.tck
implementation group: 'org.apache.commons', name: 'commons-text', version: ver.apache.commons.text
implementation group: 'org.scalatest', name: "scalatest".scala(), version: ver.scalatest
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
package org.opencypher.okapi.tck.test


import org.apache.commons.lang3.StringEscapeUtils
import org.apache.commons.text.StringEscapeUtils
import org.opencypher.okapi.impl.exception.NotImplementedException
import org.opencypher.okapi.tck.test.TckToCypherConverter.tckValueToCypherValue
import org.opencypher.okapi.api.value.CypherValue.{CypherList => OKAPICypherList, CypherMap => OKAPICypherMap, CypherNull => OKAPICypherNull, CypherString => OKAPICypherString, CypherValue => OKAPICypherValue}
Expand Down
Loading