Spring Data Neo4j

Neo4j support for Spring Data

License

License

Categories

Categories

Neo4J Data Databases
GroupId

GroupId

org.springframework.data
ArtifactId

ArtifactId

spring-data-neo4j-parent
Last Version

Last Version

5.3.9.RELEASE
Release Date

Release Date

Type

Type

pom
Description

Description

Spring Data Neo4j
Neo4j support for Spring Data
Project URL

Project URL

https://projects.spring.io/spring-data-neo4j
Project Organization

Project Organization

Pivotal Software, Inc.

Download spring-data-neo4j-parent

How to add to project

<!-- https://jarcasting.com/artifacts/org.springframework.data/spring-data-neo4j-parent/ -->
<dependency>
    <groupId>org.springframework.data</groupId>
    <artifactId>spring-data-neo4j-parent</artifactId>
    <version>5.3.9.RELEASE</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/org.springframework.data/spring-data-neo4j-parent/
implementation 'org.springframework.data:spring-data-neo4j-parent:5.3.9.RELEASE'
// https://jarcasting.com/artifacts/org.springframework.data/spring-data-neo4j-parent/
implementation ("org.springframework.data:spring-data-neo4j-parent:5.3.9.RELEASE")
'org.springframework.data:spring-data-neo4j-parent:pom:5.3.9.RELEASE'
<dependency org="org.springframework.data" name="spring-data-neo4j-parent" rev="5.3.9.RELEASE">
  <artifact name="spring-data-neo4j-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='org.springframework.data', module='spring-data-neo4j-parent', version='5.3.9.RELEASE')
)
libraryDependencies += "org.springframework.data" % "spring-data-neo4j-parent" % "5.3.9.RELEASE"
[org.springframework.data/spring-data-neo4j-parent "5.3.9.RELEASE"]

Dependencies

compile (2)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.26
org.projectlombok : lombok Optional jar 1.18.12

test (7)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter jar
org.junit.vintage : junit-vintage-engine jar
org.mockito : mockito-core jar 3.3.3
org.mockito : mockito-junit-jupiter jar 3.3.3
org.assertj : assertj-core jar 3.18.1
org.springframework : spring-test jar
ch.qos.logback : logback-classic jar 1.2.3

Project Modules

  • spring-data-neo4j
  • spring-data-neo4j-distribution

Spring Data Build Infrastructure icon?job=spring data build%2Fmain&subject=Build

This repository contains common infrastructure to be used by Spring Data modules that build with Maven. It consists of a resources project that bundles up resources that are needed during the build CSS for reference documentation generation and JavaDoc. The second project is parent that can be used as parent project to pre-configure core dependencies, properties, reference documentation generation and most important of all the appropriate distribution assembly.

The parent project can be eased for either a single-module Maven project or a multi-module one. Each of the setups requires a slightly different setup of the project.

Code of Conduct

This project is governed by the Spring Code of Conduct. By participating, you are expected to uphold this code of conduct. Please report unacceptable behavior to [email protected].

Project setup

General setup

The parent project configures the following aspects of the project build:

Shared resources are pulled in from the spring-data-build-resources dependency (images, CSS, JavaScript). Renders reference documentation from Asciidoc file named index.adoc within src/asciidoc. In the distribute profile, two assemblies are generated: A ZIP to be uploaded to docs.spring.io (incl. javadoc (browsable), reference docs as described before) with the following content:

- changelog.txt
- notice.txt
+ reference -> Asciidoc generated reference documentation
  + html
  + pdf
  + epub
+ api -> JavaDoc

A second ZIP is generated to be uploaded to docs.spring.io to contain all Spring namespace XSDs.

The following dependencies are pre-configured.

  • Logging dependencies: SLF4j + Commons Logging bridge and Logback as test dependency

  • Test dependencies: JUnit / AssertJ / Hamcrest / Mockito

  • Dependency versions for commonly used dependencies

Single project setup

If the client project is a project consisting of a single project only all that needs to be done is declaring the parent project:

<parent>
	<groupId>org.springframework.data.build</groupId>
	<artifactId>spring-data-parent</artifactId>
	<version>${most-recent-release-version}</version>
</parent>

Be sure to adapt the version number to the latest release version. The second and already last step of the setup is to activate the assembly and asciidoctor plugin in the build section:

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-assembly-plugin</artifactId>
</plugin>
<plugin>
	<groupId>org.asciidoctor</groupId>
	<artifactId>asciidoctor-maven-plugin</artifactId>
</plugin>

As an example have a look at the build of Spring Data JPA.

Multi project setup

A multi module setup requires slightly more setup and some structure being set up.

  • The root pom.xml needs to configure the project.type property to multi.

  • Asciidoc documentation sources need to be in the root project.

  • The assembly needs to be build in a dedicated sub-module (e.g. distribution), declare the assembly plugin (see single project setup) in that submodule and reconfigure the project.root property in that module to ${basedir}/...

  • Configure ${dist.id} in the root project to the basic artifact id (e.g. spring-data-mongodb) as this will serve as file name for distribution artifacts, static resources etc. It will default to the artifact id and thus usually resolve to a …-parent if not configured properly.

As an example have a look at the build of Spring Data MongoDB.

Build configuration

  • Goals to execute clean (dependency:tree) install -Pci to run the build

  • Goals to execute clean deploy -Pci,artifactory to deploy artifacts to Artifactory

  • A nightly build can then use clean (dependency:tree) deploy -Pdistribute to publish reference documentation

Additional build profiles

  • ci - Packages the JavaDoc as JAR for distribution (needs to be active on the CI server to make sure we distribute JavaDoc as JAR).

  • distribute - Creates Asciidoc documentation.

  • distribute-schema - Creates schema file distribution.

  • spring…-next - Configures the Spring version to be used to be the next Spring Framework snapshot version.

License

Spring Data Build is Open Source software released under the Apache 2.0 license.

org.springframework.data

Spring

Versions

Version
5.3.9.RELEASE
5.3.8.RELEASE
5.3.7.RELEASE
5.3.6.RELEASE
5.3.5.RELEASE
5.3.4.RELEASE
5.3.3.RELEASE
5.3.2.RELEASE
5.3.1.RELEASE
5.3.0.RELEASE
5.2.13.RELEASE
5.2.12.RELEASE
5.2.11.RELEASE
5.2.10.RELEASE
5.2.9.RELEASE
5.2.8.RELEASE
5.2.7.RELEASE
5.2.6.RELEASE
5.2.5.RELEASE
5.2.4.RELEASE
5.2.3.RELEASE
5.2.2.RELEASE
5.2.1.RELEASE
5.2.0.RELEASE
5.1.21.RELEASE
5.1.20.RELEASE
5.1.19.RELEASE
5.1.18.RELEASE
5.1.17.RELEASE
5.1.16.RELEASE
5.1.15.RELEASE
5.1.14.RELEASE
5.1.13.RELEASE
5.1.12.RELEASE
5.1.11.RELEASE
5.1.10.RELEASE
5.1.9.RELEASE
5.1.8.RELEASE
5.1.7.RELEASE
5.1.6.RELEASE
5.1.5.RELEASE
5.1.4.RELEASE
5.1.3.RELEASE
5.1.2.RELEASE
5.1.1.RELEASE
5.1.0.RELEASE
5.0.14.RELEASE
5.0.13.RELEASE
5.0.12.RELEASE
5.0.11.RELEASE
5.0.10.RELEASE
5.0.9.RELEASE
5.0.8.RELEASE
5.0.7.RELEASE
5.0.6.RELEASE
5.0.5.RELEASE
5.0.4.RELEASE
5.0.3.RELEASE
5.0.2.RELEASE
5.0.1.RELEASE
5.0.0.RELEASE
4.2.23.RELEASE
4.2.22.RELEASE
4.2.21.RELEASE
4.2.20.RELEASE
4.2.18.RELEASE
4.2.17.RELEASE
4.2.16.RELEASE
4.2.15.RELEASE
4.2.14.RELEASE
4.2.13.RELEASE
4.2.12.RELEASE
4.2.11.RELEASE
4.2.10.RELEASE
4.2.9.RELEASE
4.2.8.RELEASE
4.2.7.RELEASE
4.2.6.RELEASE
4.2.5.RELEASE
4.2.4.RELEASE
4.2.3.RELEASE
4.2.2.RELEASE
4.2.1.RELEASE
4.2.0.RELEASE
4.1.11.RELEASE
4.1.10.RELEASE
4.1.9.RELEASE
4.1.8.RELEASE
4.1.7.RELEASE
4.1.6.RELEASE
4.1.5.RELEASE
4.1.4.RELEASE
4.1.3.RELEASE
4.1.2.RELEASE
4.1.1.RELEASE
4.1.0.RELEASE
4.0.0.RELEASE
3.4.6.RELEASE
3.4.5.RELEASE
3.4.4.RELEASE
3.4.2.RELEASE
3.4.1.RELEASE
3.4.0.RELEASE
3.3.2.RELEASE
3.3.1.RELEASE
3.3.0.RELEASE
3.2.4.RELEASE
3.2.3.RELEASE
3.2.2.RELEASE
3.2.1.RELEASE
3.2.0.RELEASE
3.1.6.RELEASE
3.1.5.RELEASE
3.1.4.RELEASE
3.1.2.RELEASE
3.1.1.RELEASE
3.1.0.RELEASE
3.0.3.RELEASE
3.0.2.RELEASE
3.0.1.RELEASE
3.0.0.RELEASE
2.3.5.RELEASE
2.3.4.RELEASE
2.3.3.RELEASE
2.3.2.RELEASE
2.3.1.RELEASE
2.3.0.RELEASE
2.2.3.RELEASE
2.2.2.RELEASE
2.2.1.RELEASE
2.2.0.RELEASE
2.1.0.RELEASE
2.0.2.RELEASE
2.0.1.RELEASE
2.0.0.RELEASE