Skip to content

Commit

Permalink
Release 5.23.0 (#4013) (#4051) (#4173)
Browse files Browse the repository at this point in the history
* Release 5.23.0 (#4013) (#4051)

* Release 5.23.0 (#4013)

* Release 5.23.0
* Updated java driver, antora and other references to 5.23

* restored teamcity-repository.gradle, build.gradle, ci.yaml and action.yml like the 5.22 ones
  • Loading branch information
vga91 authored Aug 28, 2024
1 parent cf0ddd3 commit c813781
Show file tree
Hide file tree
Showing 13 changed files with 34 additions and 89 deletions.
4 changes: 2 additions & 2 deletions .github/actions/test-gradle-project/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ runs:
- uses: ./.github/actions/setup-gradle-cache
- name: Run compile tests
shell: bash
run: ./gradlew --info -Pneo4jVersionOverride=$NEO4J_VERSION_CI :${{inputs.project-name}}:compileJava :${{inputs.project-name}}:compileTestJava
run: ./gradlew :${{inputs.project-name}}:compileJava :${{inputs.project-name}}:compileTestJava
- name: Run tests
shell: bash
run: ./gradlew --info -Pneo4jVersionOverride=$NEO4J_VERSION_CI :${{inputs.project-name}}:check --parallel
run: ./gradlew :${{inputs.project-name}}:check --parallel
- name: Archive test results
uses: actions/upload-artifact@v2
if: always()
Expand Down
64 changes: 14 additions & 50 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@ name: CI

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

env:
CODEARTIFACT_DOWNLOAD_URL: ${{ secrets.CODEARTIFACT_DOWNLOAD_URL }}
CODEARTIFACT_USERNAME: ${{ secrets.CODEARTIFACT_USERNAME }}
DOCKER_ENTERPRISE_URL: ${{ secrets.DOCKER_ENTERPRISE_DEV_URL }}
DOCKER_COMMUNITY_URL: ${{ secrets.DOCKER_COMMUNITY_DEV_URL }}
TEAMCITY_DEV_URL: ${{ secrets.TEAMCITY_DEV_URL }}
TEAMCITY_USER: ${{ secrets.TEAMCITY_USER }}
TEAMCITY_PASSWORD: ${{ secrets.TEAMCITY_PASSWORD }}
ENTERPRISE_TAR: enterprise-docker.tar
COMMUNITY_TAR: community-docker.tar


jobs:
Expand All @@ -23,43 +28,23 @@ jobs:
matrix:
language: [ 'java', 'javascript' ]
steps:
- name: Configure AWS CLI
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-1

- name: Configure CodeArtifact Authentication Token
run: |
CODEARTIFACT_TOKEN=`aws codeartifact get-authorization-token --domain build-service-live --domain-owner ${{ secrets.AWS_ACCOUNT_ID }} --query authorizationToken --output text`
echo "::add-mask::$CODEARTIFACT_TOKEN"
echo "CODEARTIFACT_TOKEN=$CODEARTIFACT_TOKEN" >> "$GITHUB_ENV"
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-jdk
- uses: ./.github/actions/setup-gradle-cache

- name: Determine latest neo4j CI version
run: |
neo4j_version_base=$(grep -e "neo4jVersion = .*" build.gradle | cut -d '=' -f 2 | tr -d \'\" | tr -d ' ')
echo "neo4j_version_base=$neo4j_version_base"
NEO4J_VERSION_CI=`aws codeartifact list-package-versions --domain build-service-live --domain-owner ${{ secrets.AWS_ACCOUNT_ID }} --repository ci-live --format maven --namespace org.neo4j --package neo4j --sort-by PUBLISHED_TIME --max-items 1 --query "versions[?starts_with(version,'$neo4j_version_base')] | [0].version" --output text | head -n 1`
echo "NEO4J_VERSION_CI=$NEO4J_VERSION_CI" >> "$GITHUB_ENV"
echo "Found NEO4j_VERSION_CI=$NEO4J_VERSION_CI"

- name: Compile Java
run: |
chmod +x gradlew
./gradlew --no-daemon --info -Pneo4jVersionOverride=$NEO4J_VERSION_CI --init-script init.gradle clean
./gradlew --no-daemon --init-script init.gradle clean
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Compile
run: ./gradlew --info -Pneo4jVersionOverride=$NEO4J_VERSION_CI compileJava compileTestJava
# Autobuild attempts to build any compiled languages
- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
Expand All @@ -73,19 +58,6 @@ jobs:
project: [ 'extended', 'extended-it' ]
runs-on: ubuntu-latest
steps:
- name: Configure AWS CLI
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-1

- name: Configure CodeArtifact Authentication Token
run: |
CODEARTIFACT_TOKEN=`aws codeartifact get-authorization-token --domain build-service-live --domain-owner ${{ secrets.AWS_ACCOUNT_ID }} --query authorizationToken --output text`
echo "::add-mask::$CODEARTIFACT_TOKEN"
echo "CODEARTIFACT_TOKEN=$CODEARTIFACT_TOKEN" >> "$GITHUB_ENV"
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
Expand All @@ -98,19 +70,11 @@ jobs:
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}

- name: Determine latest neo4j CI version
run: |
neo4j_version_base=$(grep -e "neo4jVersion = .*" build.gradle | cut -d '=' -f 2 | tr -d \'\" | tr -d ' ')
echo "neo4j_version_base=$neo4j_version_base"
NEO4J_VERSION_CI=`aws codeartifact list-package-versions --domain build-service-live --domain-owner ${{ secrets.AWS_ACCOUNT_ID }} --repository ci-live --format maven --namespace org.neo4j --package neo4j --sort-by PUBLISHED_TIME --max-items 1 --query "versions[?starts_with(version,'$neo4j_version_base')] | [0].version" --output text | head -n 1`
echo "NEO4J_VERSION_CI=$NEO4J_VERSION_CI" >> "$GITHUB_ENV"
echo "Found NEO4j_VERSION_CI=$NEO4J_VERSION_CI"

- name: Init gradle
run: |
chmod +x gradlew
./gradlew --info -Pneo4jVersionOverride=$NEO4J_VERSION_CI --init-script init.gradle
./gradlew --init-script init.gradle
- name: Run ${{ matrix.project }} tests
uses: ./.github/actions/test-gradle-project
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 = 5.22
branch = 5.23
2 changes: 1 addition & 1 deletion apoc-core
Submodule apoc-core updated 29 files
+0 −10 .github/actions/gradle-command-on-pr/action.yaml
+0 −27 .github/actions/test-gradle-project/action.yaml
+47 −58 .github/workflows/CI.yaml
+0 −3 .github/workflows/generateLicenses-command.yml
+0 −3 .github/workflows/spotlessApply-command.yml
+16 −14 build.gradle
+5 −5 common/build.gradle
+0 −10 common/src/main/java/apoc/ApocConfig.java
+13 −4 common/src/main/java/apoc/export/util/ExportConfig.java
+10 −1 common/src/main/java/apoc/export/util/FormatUtils.java
+31 −0 common/src/main/java/apoc/util/Util.java
+5 −5 core/build.gradle
+16 −9 core/src/main/java/apoc/CoreApocGlobalComponents.java
+32 −17 core/src/main/java/apoc/export/csv/CsvFormat.java
+34 −0 core/src/main/java/apoc/export/csv/CustomCSVWriter.java
+18 −0 core/src/main/java/apoc/trigger/Trigger.java
+15 −24 core/src/main/java/apoc/trigger/TriggerHandler.java
+4 −3 core/src/main/java/apoc/warmup/Warmup.java
+395 −65 core/src/test/java/apoc/export/csv/ExportCsvTest.java
+31 −10 core/src/test/java/apoc/trigger/TriggerDisabledTest.java
+6 −2 core/src/test/java/apoc/trigger/TriggerRestartTest.java
+7 −2 core/src/test/java/apoc/trigger/TriggerTest.java
+38 −0 core/src/test/java/apoc/util/UtilTest.java
+1 −1 it/src/test/java/apoc/it/core/ExportCsvS3Test.java
+54 −25 it/src/test/java/apoc/it/core/WarmupEnterpriseTest.java
+5 −5 processor/build.gradle
+3 −3 readme.adoc
+4 −4 teamcity-repository.gradle
+5 −5 test-utils/build.gradle
24 changes: 2 additions & 22 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,7 @@ repositories {
/*maven { // this contains the neo4j 4.0.0-beta jars
url "https://neo4j.bintray.com/community/"
}*/
if (System.getenv("CODEARTIFACT_DOWNLOAD_URL") ?: "" != "") {
maven {
url System.getenv('CODEARTIFACT_DOWNLOAD_URL')
credentials {
username System.getenv('CODEARTIFACT_USERNAME')
password System.getenv('CODEARTIFACT_TOKEN')
}
}
} else {
mavenCentral()
}
mavenCentral()
maven {
url "https://repo.gradle.org/gradle/libs-releases"
}
Expand All @@ -53,17 +43,7 @@ subprojects {
/*maven { // this contains the neo4j 4.0.0-beta jars
url "https://neo4j.bintray.com/community/"
}*/
if (System.getenv("CODEARTIFACT_DOWNLOAD_URL") ?: "" != "") {
maven {
url System.getenv('CODEARTIFACT_DOWNLOAD_URL')
credentials {
username System.getenv('CODEARTIFACT_USERNAME')
password System.getenv('CODEARTIFACT_TOKEN')
}
}
} else {
mavenCentral()
}
mavenCentral()
maven {
url "https://repo.gradle.org/gradle/libs-releases"
}
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.20', '4.4', '4.3', '4.2', '4.1', '4.0']
branches: ['5.23', '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/antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ asciidoc:
docs-version: "5.0"
branch: "5.0"
apoc-release-absolute: "5.0"
apoc-release: "5.22.0"
apoc-release: "5.23.0"
3 changes: 2 additions & 1 deletion docs/asciidoc/modules/ROOT/partials/neo4j-server.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ The version compatibility matrix explains the mapping between Neo4j and APOC ver
[opts=header]
|===
|apoc version | neo4j version
| https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/5.23.0[5.23.0^] | 5.23.0 (5.23.x)
| https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/5.22.0[5.22.0^] | 5.22.0 (5.22.x)
| https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/5.21.0[5.21.0^] | 5.21.0 (5.21.x)
| https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/5.20.0[5.20.0^] | 5.20.0 (5.20.x)
Expand All @@ -46,7 +47,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.30[4.4.0.30^] | 4.4.0 (4.4.x)
|===

// end::version-matrix[]
Expand Down
2 changes: 1 addition & 1 deletion docs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ plugins {
id 'org.neo4j.doc.build.docbook' version '1.0-alpha12'
}

if (!project.hasProperty('apocVersion')) { ext.apocVersion = '5.22.0' }
if (!project.hasProperty('apocVersion')) { ext.apocVersion = '5.23.0' }

ext {
versionParts = apocVersion.split('-')
Expand Down
2 changes: 1 addition & 1 deletion extended/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ dependencies {
// They need to be provided either through the database or in an extra .jar
compileOnly group: 'org.neo4j', name: 'neo4j', version: neo4jVersionEffective
// same version as the one included in neo4j `lib`
compileOnly group: 'org.neo4j.driver', name: 'neo4j-java-driver', version: '5.20.0'
compileOnly group: 'org.neo4j.driver', name: 'neo4j-java-driver', version: '5.23.0'

compileOnly group: 'org.apache.poi', name: 'poi', version: '5.1.0'
compileOnly group: 'org.apache.poi', name: 'poi-ooxml', version: '5.1.0'
Expand Down
2 changes: 1 addition & 1 deletion extra-dependencies/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ ext {


subprojects {
version = '5.22.0'
version = '5.23.0'
group = 'org.neo4j.contrib'
}

Expand Down
6 changes: 3 additions & 3 deletions readme.adoc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
:readme:
:branch: 5.22
:branch: 5.23
:docs: https://neo4j.com/labs/apoc/5
:apoc-release: 5.22.0
:neo4j-version: 5.22.0
:apoc-release: 5.23.0
:neo4j-version: 5.23.0
:img: https://raw.githubusercontent.com/neo4j-contrib/neo4j-apoc-procedures/{branch}/docs/images

https://community.neo4j.com[image:https://img.shields.io/discourse/users?logo=discourse&server=https%3A%2F%2Fcommunity.neo4j.com[Discourse users]]
Expand Down
8 changes: 4 additions & 4 deletions teamcity-repository.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ allprojects {
plugins.withType(JavaLibraryPlugin) {
repositories {
maven {
name = 'aws-codeartifact-repo'
url = System.getenv('CODEARTIFACT_DOWNLOAD_URL')
name = 'teamcity-neo4j-dev'
url = System.getenv('TEAMCITY_DEV_URL')
credentials {
username System.getenv('CODEARTIFACT_USERNAME')
password System.getenv('CODEARTIFACT_TOKEN')
username System.getenv('TEAMCITY_USER')
password System.getenv('TEAMCITY_PASSWORD')
}
authentication {
basic(BasicAuthentication)
Expand Down

0 comments on commit c813781

Please sign in to comment.