Skip to content

Commit

Permalink
solve hdfs tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vga91 committed Feb 10, 2025
1 parent a518ad3 commit 95270a5
Showing 1 changed file with 28 additions and 35 deletions.
63 changes: 28 additions & 35 deletions extended/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,37 +62,27 @@ dependencies {
compileOnly sourceSets.main.java
testImplementation sourceSets.main.java


apt project(':processor')
apt group: 'org.neo4j', name: 'neo4j', version: neo4jVersionEffective // mandatory to run @ServiceProvider based META-INF code generation

antlr "org.antlr:antlr4:4.13.2", {
exclude group: 'org.glassfish'
exclude group: 'com.ibm.icu'
exclude group: 'org.abego.treelayout'
}

def withoutServers = {
exclude group: 'org.eclipse.jetty'
exclude group: 'org.eclipse.jetty.aggregate'
exclude group: 'org.apache.hive', module: 'hive-service'
exclude group: 'org.eclipse.jetty.http2'
exclude group: 'org.eclipse.jetty.ee8'
}

def withoutJacksons = {
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-core'
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-annotations'
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'
}

implementation group: 'org.neo4j.community', name: 'it-test-support', version: neo4jVersionEffective,withoutServers // , classifier: "tests"
implementation group: 'org.neo4j', name: 'log-test-utils', version: neo4jVersionEffective,withoutServers
implementation group: 'org.neo4j', name: 'neo4j-common', version: neo4jVersionEffective, classifier: "tests",withoutServers
implementation group: 'org.neo4j', name: 'neo4j-kernel', version: neo4jVersionEffective, classifier: "tests",withoutServers
implementation group: 'org.neo4j', name: 'neo4j-io', version: neo4jVersionEffective, classifier: "tests",withoutServers
implementation group: 'org.apache.hadoop', name: 'hadoop-minicluster', version: '3.4.0'
implementation group: 'org.apache.hadoop', name: 'hadoop-common', version: '3.4.0'
implementation group: 'org.apache.hadoop', name: 'hadoop-hdfs', version: '3.4.0'

apt project(':processor')
apt group: 'org.neo4j', name: 'neo4j', version: neo4jVersionEffective // mandatory to run @ServiceProvider based META-INF code generation

antlr "org.antlr:antlr4:4.13.2", {
exclude group: 'org.glassfish'
exclude group: 'com.ibm.icu'
exclude group: 'org.abego.treelayout'
}

// These will be dependencies packaged with the .jar
implementation project(':common')
Expand Down Expand Up @@ -145,10 +135,10 @@ dependencies {
testImplementation group: 'org.apache.arrow', name: 'arrow-memory-netty', version: '13.0.0'

// These dependencies affect the tests only, they will not be packaged in the resulting .jar
testImplementation project(':test-utils')
// , {
//
// }
testImplementation project(':test-utils'), {
exclude group: 'org.apache.hadoop'
exclude group: 'org.neo4j'
}
testImplementation project(':core')
testImplementation group: 'org.apache.poi', name: 'poi', version: '5.1.0', {
exclude group: 'org.apache.commons', module: 'commons-collections4'
Expand Down Expand Up @@ -178,24 +168,27 @@ dependencies {
exclude group: 'org.apache.commons', module: 'commons-collections4'
}

implementation group: 'org.neo4j.community', name: 'it-test-support', version: neo4jVersionEffective,withoutServers // , classifier: "tests"
implementation group: 'org.neo4j', name: 'log-test-utils', version: neo4jVersionEffective,withoutServers
implementation group: 'org.neo4j', name: 'neo4j-common', version: neo4jVersionEffective, classifier: "tests",withoutServers
implementation group: 'org.neo4j', name: 'neo4j-kernel', version: neo4jVersionEffective, classifier: "tests",withoutServers
implementation group: 'org.neo4j', name: 'neo4j-io', version: neo4jVersionEffective, classifier: "tests",withoutServers
implementation group: 'org.apache.hadoop', name: 'hadoop-minicluster', version: '3.4.0'
implementation group: 'org.apache.hadoop', name: 'hadoop-common', version: '3.4.0'
implementation group: 'org.apache.hadoop', name: 'hadoop-hdfs', version: '3.4.0'
def withoutServerEE8 = {
exclude group: 'org.eclipse.jetty.ee8'
}

testImplementation group: 'org.neo4j.community', name: 'it-test-support', version: neo4jVersionEffective, withoutServerEE8
testImplementation group: 'org.neo4j', name: 'log-test-utils', version: neo4jVersionEffective, withoutServerEE8
testImplementation group: 'org.neo4j', name: 'neo4j-common', version: neo4jVersionEffective, classifier: "tests", withoutServerEE8
testImplementation group: 'org.neo4j', name: 'neo4j-kernel', version: neo4jVersionEffective, classifier: "tests", withoutServerEE8
testImplementation group: 'org.neo4j', name: 'neo4j-io', version: neo4jVersionEffective, classifier: "tests", withoutServerEE8

def hadoopVersion = '3.4.1'
testImplementation group: 'org.apache.hadoop', name: 'hadoop-hdfs', version: hadoopVersion
testImplementation group: 'org.apache.hadoop', name: 'hadoop-common', version: hadoopVersion
testImplementation group: 'org.apache.hadoop', name: 'hadoop-minicluster', version: hadoopVersion

configurations.configureEach {
exclude group: 'org.slf4j', module: 'slf4j-nop'
exclude group: 'ch.qos.logback', module: 'logback-classic'
exclude group: 'org.eclipse.jetty.http2'
exclude group: 'org.eclipse.jetty.ee8'
}
}


java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
Expand Down

0 comments on commit 95270a5

Please sign in to comment.