Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* [NOID] Release 5.14.0 (neo4j-contrib#3803)

* Release 5.13.0

* Removed -debian suffix from docker (neo4j-contrib#3723)

* solve various jar conflict errors

* add commonExclusion

* try debug confligException

* remove extra-deps

* remove gson (present in hadoop) and changed wildCard extra-deps filter

* restore code
  • Loading branch information
vga91 committed Dec 16, 2023
1 parent 0accff9 commit 4aabb0a
Show file tree
Hide file tree
Showing 17 changed files with 75 additions and 52 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [ "dev" ]
branches: [ "5.15" ]
pull_request:
branches: [ "dev" ]
branches: [ "5.15" ]

jobs:
build:
Expand All @@ -26,14 +26,6 @@ jobs:
java-version: '17.0.8'
distribution: 'temurin'

- name: Download neo4j dev docker container
run: |
curl -s -L0 -u "${TEAMCITY_USER}:${TEAMCITY_PASSWORD}" -X GET ${DOCKER_ENTERPRISE_URL} -o ${ENTERPRISE_TAR} &
curl -s -L0 -u "${TEAMCITY_USER}:${TEAMCITY_PASSWORD}" -X GET ${DOCKER_COMMUNITY_URL} -o ${COMMUNITY_TAR} &
wait
docker load --input ${ENTERPRISE_TAR}
docker load --input ${COMMUNITY_TAR}
- uses: actions/cache@v2
with:
path: |
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "apoc-core"]
path = apoc-core
url = https://github.com/neo4j/apoc
branch = dev
branch = 5.15
2 changes: 1 addition & 1 deletion apoc-core
Submodule apoc-core updated 487 files
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ subprojects {
// neo4jDockerImage system property is used in TestContainerUtil
systemProperties 'user.language' : 'en' ,
'user.country' : 'US',
'neo4jDockerImage' : System.getProperty("NEO4JVERSION") ? 'neo4j:' + System.getProperty("NEO4JVERSION") + '-enterprise-debian' : 'neo4j:5.15.0-enterprise-debian',
'neo4jCommunityDockerImage': System.getProperty("NEO4JVERSION") ? 'neo4j:' + System.getProperty("NEO4JVERSION") + '-debian' : 'neo4j:5.15.0-debian',
'neo4jDockerImage' : System.getProperty("NEO4JVERSION") ? 'neo4j:' + System.getProperty("NEO4JVERSION") + '-enterprise-debian' : 'neo4j:5.15.0-enterprise',
'neo4jCommunityDockerImage': System.getProperty("NEO4JVERSION") ? 'neo4j:' + System.getProperty("NEO4JVERSION") + '-debian' : 'neo4j:5.15.0',
'coreDir': 'apoc-core/core'

maxHeapSize = "5G"
Expand Down
2 changes: 1 addition & 1 deletion docs/antora/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ site:
content:
sources:
- url: https://github.com/neo4j-contrib/neo4j-apoc-procedures
branches: ['5.11', '4.4', '4.3', '4.2', '4.1', '4.0']
branches: ['5.15', '4.4', '4.3', '4.2', '4.1', '4.0']
start_path: docs/asciidoc
exclude:
- '!**/_includes/*'
Expand Down
2 changes: 1 addition & 1 deletion docs/asciidoc/modules/ROOT/partials/neo4j-server.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The version compatibility matrix explains the mapping between Neo4j and APOC ver
| https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/5.3.1[5.3.1^] | 5.3.0 (5.3.x)
| https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/5.2.0[5.2.0^] | 5.2.0 (5.2.x)
| https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/5.1.0[5.1.0^] | 5.1.0 (5.1.x)
| https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/4.4.0.18[4.4.0.18^] | 4.4.0 (4.4.x)
| https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/4.4.0.23[4.4.0.23^] | 4.4.0 (4.4.x)
|===

// end::version-matrix[]
Expand Down
2 changes: 0 additions & 2 deletions extended/src/test/java/apoc/StartupExtendedTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import apoc.util.TestContainerUtil;
import apoc.util.TestContainerUtil.Neo4jVersion;
import org.apache.commons.io.FileUtils;
import org.junit.Ignore;
import org.junit.Test;
import org.neo4j.driver.Session;

Expand All @@ -29,7 +28,6 @@
/*
This test is just to verify if the APOC procedures and functions are correctly deployed into a Neo4j instance without any startup issue.
*/
@Ignore
public class StartupExtendedTest {
private static final String APOC_HELP_QUERY = "CALL apoc.help('') YIELD core, type, name WHERE core = $core and type = $type RETURN name";
private static final List<String> EXPECTED_EXTENDED_NAMES;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static void addExtraDependencies() {

// add all extra deps to the plugin docker folder
final File directory = new File(extraDepsDir, "build/allJars");
final IOFileFilter instance = new WildcardFileFilter("*-all.jar");
final IOFileFilter instance = new WildcardFileFilter("*.jar");
copyFilesToPlugin(directory, instance, TestContainerUtil.pluginsFolder);
}

Expand Down
57 changes: 57 additions & 0 deletions extra-dependencies/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,63 @@ configure(subprojects) {
apply plugin: 'java'
}

ext {
// packages included in `$NEO4j/lib` folder
commonExclusions = {
// guava
exclude group: 'com.google.guava', module: 'guava'

// gson
exclude group: 'com.google.code.gson', module: 'gson'

// apache commons
exclude group: 'org.apache.commons', module: 'commons-beanutils'
exclude group: 'org.apache.commons', module: 'commons-collections'
exclude group: 'org.apache.commons', module: 'commons-compress'
exclude group: 'org.apache.commons', module: 'commons-configuration2'
exclude group: 'org.apache.commons', module: 'commons-io'
exclude group: 'org.apache.commons', module: 'commons-lang3'
exclude group: 'org.apache.commons', module: 'commons-logging'
exclude group: 'org.apache.commons', module: 'commons-text'

// reactor-core
exclude group: 'io.projectreactor', module: 'reactor-core'

// org.eclipse.jetty
exclude group: 'org.eclipse.jetty'
exclude group: 'org.eclipse.jetty.aggregate'

// com.sun.jersey
exclude group: 'com.sun.jersey'

// slf4j
exclude group: 'org.slf4j', module: 'slf4j-api'

// jackson
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-annotations'
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'

// io.netty
exclude group: 'io.netty', module: 'netty-codec'
exclude group: 'io.netty', module: 'netty-codec-http'
exclude group: 'io.netty', module: 'netty-codec-http2'
exclude group: 'io.netty', module: 'netty-codec-socks'
exclude group: 'io.netty', module: 'netty-common'
exclude group: 'io.netty', module: 'netty-handler'
exclude group: 'io.netty', module: 'netty-handler-proxy'
exclude group: 'io.netty', module: 'netty-resolver'
exclude group: 'io.netty', module: 'netty-transport'
exclude group: 'io.netty', module: 'netty-transport-classes-epoll'
exclude group: 'io.netty', module: 'netty-transport-classes-kqueue'
exclude group: 'io.netty', module: 'netty-transport-native-epoll'
exclude group: 'io.netty', module: 'netty-transport-native-epoll'
exclude group: 'io.netty', module: 'netty-transport-native-kqueue'
exclude group: 'io.netty', module: 'netty-transport-native-kqueue'
exclude group: 'io.netty', module: 'netty-transport-native-unix-common'
exclude group: 'io.netty', module: 'netty-tcnative-classes'
}
}


subprojects {
version = '5.15.0'
Expand Down
4 changes: 1 addition & 3 deletions extra-dependencies/couchbase/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ jar {
}

dependencies {
implementation group: 'com.couchbase.client', name: 'java-client', version: '3.3.0', {
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'
}
implementation group: 'com.couchbase.client', name: 'java-client', version: '3.3.0', commonExclusions
}


Expand Down
2 changes: 1 addition & 1 deletion extra-dependencies/gcs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ jar {
}

dependencies {
implementation group: 'com.google.cloud', name: 'google-cloud-storage', version: '2.22.3'
implementation group: 'com.google.cloud', name: 'google-cloud-storage', version: '2.22.3', commonExclusions
}
8 changes: 0 additions & 8 deletions extra-dependencies/hadoop/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,6 @@ shadowJar {
mergeServiceFiles()
}

def commonExclusions = {
exclude group: 'io.netty'
exclude group: 'com.sun.jersey'
exclude group: 'org.eclipse.jetty'
exclude group: 'org.eclipse.jetty.aggregate'
exclude group: 'org.slf4j', module: 'slf4j-api'
}

dependencies {
implementation group: 'org.apache.hadoop', name: 'hadoop-hdfs-client', version: '3.3.5', commonExclusions
implementation group: 'org.apache.hadoop', name: 'hadoop-common', version: '3.3.5', commonExclusions
Expand Down
4 changes: 1 addition & 3 deletions extra-dependencies/mongodb/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ jar {
}

dependencies {
implementation 'org.mongodb:mongodb-driver:3.2.2', {
exclude group: 'io.netty'
}
implementation 'org.mongodb:mongodb-driver:3.2.2', commonExclusions
}


Expand Down
9 changes: 2 additions & 7 deletions extra-dependencies/nlp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,9 @@ jar {
}
}

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

dependencies {
implementation group: 'com.amazonaws', name: 'aws-java-sdk-comprehend', version: '1.12.353' , withoutJacksons
implementation group: 'com.fasterxml.jackson.module', name: 'jackson-module-kotlin', version: '2.14.0', withoutJacksons
implementation group: 'com.amazonaws', name: 'aws-java-sdk-comprehend', version: '1.12.353' , commonExclusions
implementation group: 'com.fasterxml.jackson.module', name: 'jackson-module-kotlin', version: '2.14.0', commonExclusions
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.0'
}

Expand Down
4 changes: 1 addition & 3 deletions extra-dependencies/redis/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,5 @@ jar {
}

dependencies {
implementation group: 'io.lettuce', name: 'lettuce-core', version: '6.1.1.RELEASE', {
exclude group: 'io.netty'
}
implementation group: 'io.lettuce', name: 'lettuce-core', version: '6.1.1.RELEASE', commonExclusions
}
9 changes: 2 additions & 7 deletions extra-dependencies/selenium/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ jar {
}

dependencies {
implementation group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '4.10.0' , {
exclude group: 'com.google.guava', module: 'guava'
}
implementation group: 'io.github.bonigarcia', name: 'webdrivermanager', version: '5.4.0', {
exclude group: 'com.google.guava', module: 'guava'
}

implementation group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '4.10.0' , commonExclusions
implementation group: 'io.github.bonigarcia', name: 'webdrivermanager', version: '5.4.0', commonExclusions
}
2 changes: 1 addition & 1 deletion readme.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:readme:
:branch: 5.4
:branch: 5.15
:docs: https://neo4j.com/labs/apoc/5
:apoc-release: 5.15.0
:neo4j-version: 5.15.0
Expand Down

0 comments on commit 4aabb0a

Please sign in to comment.