4 Configure GORM for Neo4j

Firstly, this guide is built with GORM {gormVersion}, so in order to complete the guide we must first configure Grails to use GORM {gormVersion}.

To do so set the gormVersion property in gradle.properties to {gormVersion}:

gradle.properties
grailsVersion=3.3.0
gormVersion=6.1.6.RELEASE
neo4jVersion=3.1.2
gradleWrapperVersion=3.5

build.gradle already contains a dependency to neo4j plugin. You will need to modify the neo4j dependency to also use GORM {gormVersion}:

build.gradle
    compile "org.grails.plugins:neo4j"

Now modify the already existing neo4j configuration block within the grails-app/conf/application.yml file. Configure the Neo4j connection settings to use the "movies" password you set earlier:

grails-app/conf/application.yml
grails:
    neo4j:
        url: bolt://localhost
        username: "neo4j"
        password: "movies"
  Get the Code