diff --git a/README.adoc b/README.adoc index b975eb4b..2341def4 100644 --- a/README.adoc +++ b/README.adoc @@ -8,6 +8,7 @@ Michael Simons // tag::properties[] :groupId: org.neo4j :artifactIdCore: neo4j-jdbc +:latest_version: 6.0.0-SNAPSHOT :branch: main // end::properties[] @@ -32,8 +33,28 @@ image:https://sonar.neo4j.ninja/api/project_badges/measure?project=neo4j-jdbc&to == Download -The Maven coordinates in the documentation and corresponding README are not yet live. -In the meantime you can grab a packaged binary from the https://github.com/neo4j/neo4j-jdbc/releases/tag/early-access[early access release page], which will be actively updated. +=== Include in a Maven build + +[source,xml,subs="verbatim,attributes"] +---- + + {groupId} + {artifactIdCore}-full-bundle + {latest_version} + +---- + +=== Include in a Gradle build + +[source,groovy,subs="verbatim,attributes"] +---- +dependencies { + implementation '{groupId}:{artifactIdCore}-full-bundle:{latest_version}' +} +---- + +All https://github.com/neo4j/neo4j-jdbc/releases/[releases] from 6.0 onwards contain a zipped version of the driver, including a PDF version of the manual. +We offer several distributions, please have a look http://neo4j.github.io/neo4j-jdbc/${latest_version}/#_distribution[here] for more details. If you feel adventurous, grab the code and build the driver yourself. You find the instructions in our link:CONTRIBUTING.adoc[contribution documentation]. @@ -92,7 +113,7 @@ In case of https://quarkus.io[Quarkus] the Neo4j JDBC Driver is an option to con While there is little incentive to use this driver with Hibernate (https://github.com/neo4j/neo4j-ogm[Neo4j-OGM] or SDN are the better alternatives for Neo4j), it might be worth giving https://spring.io/projects/spring-data-jdbc/[Spring Data JDBC] a try. -=== Differences to the previous versionsof this driver and other JDBC drivers for Neo4j +=== Differences to the previous versions of this driver and other JDBC drivers for Neo4j Several other JDBC drivers exists for Neo4j, most notably the previous versions 4 and 5 of this driver, originally developed by http://larus-ba.it/[Larus BA, Italy] for Neo4j. Most—if not all of them—do wrap the common Neo4j Java Driver and implement the JDBC spec on top of that. diff --git a/bin/prepare-release.sh b/bin/prepare-release.sh new file mode 100755 index 00000000..26f9d87b --- /dev/null +++ b/bin/prepare-release.sh @@ -0,0 +1,38 @@ +#!/usr/bin/env bash +# +# Copyright (c) 2023-2024 "Neo4j," +# Neo4j Sweden AB [https://neo4j.com] +# +# This file is part of Neo4j. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + + +set -euo pipefail +DIR="$(dirname "$(realpath "$0")")" + +sed -i.bak 's/\(:latest_version:\) \(.*\)/\1 '"${1}"'/g' $DIR/../README.adoc + +rm $DIR/../README.adoc.bak + +if test -n "${2-}"; then + DRYRUN=$2 +else + DRYRUN='false' +fi + +if [ "$DRYRUN" != "true" ]; then + git add $DIR/../README.adoc + git commit -m "[maven-release-plugin] update README.adoc" +fi diff --git a/neo4j-jdbc-it/neo4j-jdbc-it-mp/pom.xml b/neo4j-jdbc-it/neo4j-jdbc-it-mp/pom.xml index b797b58e..469f92da 100644 --- a/neo4j-jdbc-it/neo4j-jdbc-it-mp/pom.xml +++ b/neo4j-jdbc-it/neo4j-jdbc-it-mp/pom.xml @@ -70,7 +70,7 @@ - it-database-port:7687 + +neo4j-ip:it-database-port:7687 @@ -83,6 +83,9 @@ start pre-integration-test + + ${skipTests} + remove-it-database @@ -90,6 +93,9 @@ stop post-integration-test + + ${skipTests} + @@ -99,6 +105,7 @@ ${maven-failsafe-plugin.version} + ${neo4j-ip} ${it-database-port} ${neo4j.password} diff --git a/neo4j-jdbc-it/neo4j-jdbc-it-mp/src/test/java/org/neo4j/jdbc/it/mp/SmokeIT.java b/neo4j-jdbc-it/neo4j-jdbc-it-mp/src/test/java/org/neo4j/jdbc/it/mp/SmokeIT.java index 489716b4..f3c5d2f6 100644 --- a/neo4j-jdbc-it/neo4j-jdbc-it-mp/src/test/java/org/neo4j/jdbc/it/mp/SmokeIT.java +++ b/neo4j-jdbc-it/neo4j-jdbc-it-mp/src/test/java/org/neo4j/jdbc/it/mp/SmokeIT.java @@ -63,7 +63,7 @@ private static int getPort() { } private static String getHost() { - return "localhost"; + return System.getProperty("it-database-host", "localhost"); } private static String getPassword() { diff --git a/pom.xml b/pom.xml index e808b2dd..3bd3b20f 100644 --- a/pom.xml +++ b/pom.xml @@ -155,6 +155,7 @@ 3.1.1 3.3.0 3.6.3 + 3.0.1 3.3.1 3.5.2 3.3.0 @@ -567,6 +568,22 @@ true + + + prepare-release + + exec + + + bin/prepare-release.sh + + ${project.version} + ${isDryRun} + + true + + + org.moditect @@ -759,6 +776,22 @@ + + org.apache.maven.plugins + maven-release-plugin + ${maven-release-plugin.version} + + true + false + release + @{project.version} + deploy + -Drelease -Dgpg.skip=${skipSigning} -DskipTests=${skipTestsDuringRelease} -DisDryRun=${dryRun} + clean exec:exec@prepare-release verify + false + true + +