Skip to content

Commit b974dd0

Browse files
authored
Update version to 5.3.7 (#74)
1 parent 71621ee commit b974dd0

File tree

7 files changed

+27
-16
lines changed

7 files changed

+27
-16
lines changed

antora.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ asciidoc:
99
attributes:
1010
theme: docs
1111
connector-version: '5.3'
12-
exact-connector-version: '5.3.6'
12+
exact-connector-version: '5.3.7'
1313
scala-version: '2.12'
14+
exact-scala-version: '2.12.20'
15+
spark-version: '3.5.5'
1416
copyright: Neo4j Inc.
1517
url-neo4j-product-gds-lib: https://neo4j.com/product/graph-data-science-library/
1618
url-gh-spark-notebooks: https://github.com/utnaf/neo4j-connector-apache-spark-notebooks

modules/ROOT/examples/java/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
<dependencies>
99
<dependency>
1010
<groupId>org.apache.spark</groupId>
11-
<artifactId>spark-sql_2.12</artifactId>
12-
<version>3.5.1</version>
11+
<artifactId>spark-sql_{scala-version}</artifactId>
12+
<version>{spark-version}</version>
1313
<scope>provided</scope>
1414
</dependency>
1515
<dependency>
1616
<groupId>org.neo4j</groupId>
17-
<artifactId>neo4j-connector-apache-spark_2.12</artifactId>
18-
<version>5.3.1_for_spark_3</version>
17+
<artifactId>neo4j-connector-apache-spark_{scala-version}</artifactId>
18+
<version>{exact-connector-version}_for_spark_3</version>
1919
</dependency>
2020
</dependencies>
2121
</project>

modules/ROOT/examples/scala/build.sbt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name := "Spark App"
22
version := "1.0"
3-
scalaVersion := "2.12.18"
3+
scalaVersion := "{exact-scala-version}"
44

5-
libraryDependencies += "org.apache.spark" %% "spark-sql" % "3.5.1"
6-
libraryDependencies += "org.neo4j" %% "neo4j-connector-apache-spark" % "5.3.1_for_spark_3"
5+
libraryDependencies += "org.apache.spark" %% "spark-sql" % "{spark-version}"
6+
libraryDependencies += "org.neo4j" %% "neo4j-connector-apache-spark" % "{exact-connector-version}_for_spark_3"

modules/ROOT/pages/installation.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ Alternatively, you can download the connector JAR file from the link:https://neo
8383
=====
8484
[source, shell, subs="attributes+"]
8585
----
86-
$SPARK_HOME/bin/spark-shell --jars neo4j-connector-apache-spark_{scala-version}-{exact-connector-version}_for_spark_3.jar
86+
$SPARK_HOME/bin/spark-shell --jars neo4j-spark-connector-{exact-connector-version}-s_{scala-version}.jar
8787
----
8888
=====
8989
9090
[.include-with-Python]
9191
=====
9292
[source, shell, subs="attributes+"]
9393
----
94-
$SPARK_HOME/bin/pyspark --jars neo4j-connector-apache-spark_{scala-version}-{exact-connector-version}_for_spark_3.jar
94+
$SPARK_HOME/bin/pyspark --jars neo4j-spark-connector-{exact-connector-version}-s_{scala-version}.jar
9595
----
9696
=====
9797
====
@@ -115,7 +115,7 @@ See the xref:quickstart.adoc#applications[Quickstart] for code examples.
115115
[.include-with-Scala]
116116
=====
117117
.A minimal `build.sbt`
118-
[source, sbt]
118+
[source, sbt, subs="attributes+"]
119119
----
120120
include::example$scala/build.sbt[]
121121
----
@@ -131,7 +131,7 @@ scala spDependencies += "org.neo4j/neo4j-connector-apache-spark_{scala-version}:
131131
[.include-with-Java]
132132
=====
133133
.A minimal `pom.xml`
134-
[source, xml]
134+
[source, xml, subs="attributes+"]
135135
----
136136
include::example$java/pom.xml[]
137137
----

scripts/run-examples/run-app/run_java.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
EXAMPLES_ROOT=../../../../modules/ROOT/examples
22
CONNECTOR_VERSION=$(grep -o "exact-connector-version: .\+" ../../../antora.yml | grep -o "\d\+\.\d\+\.\d\+")
3-
SCALA_VERSION=$(grep -o "scala-version: .\+" ../../../antora.yml | grep -o "\d\+\.\d\+")
3+
SCALA_VERSION=$(grep -o " scala-version: .\+" ../../../antora.yml | grep -o "\d\+\.\d\+")
4+
SPARK_VERSION=$(grep -o "spark-version: .\+" ../../../antora.yml | grep -o "\d\+\.\d\+\.\d\+")
45

56
mkdir -p java-example
67
cd java-example
78

89
cp $EXAMPLES_ROOT/java/pom.xml .
10+
sed -i '' -e "s/{scala-version}/$SCALA_VERSION/g" pom.xml
11+
sed -i '' -e "s/{spark-version}/$SPARK_VERSION/g" pom.xml
12+
sed -i '' -e "s/{exact-connector-version}/$CONNECTOR_VERSION/g" pom.xml
913
cp $EXAMPLES_ROOT/example.jsonl .
1014

1115
mkdir -p src/main/java

scripts/run-examples/run-app/run_python.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
EXAMPLES_ROOT=../../../../modules/ROOT/examples
22
CONNECTOR_VERSION=$(grep -o "exact-connector-version: .\+" ../../../antora.yml | grep -o "\d\+\.\d\+\.\d\+")
3-
SCALA_VERSION=$(grep -o "scala-version: .\+" ../../../antora.yml | grep -o "\d\+\.\d\+")
3+
SCALA_VERSION=$(grep -o " scala-version: .\+" ../../../antora.yml | grep -o "\d\+\.\d\+")
44

55
mkdir -p python-example
66
cd python-example

scripts/run-examples/run-app/run_scala.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
EXAMPLES_ROOT=../../../../modules/ROOT/examples
22
CONNECTOR_VERSION=$(grep -o "exact-connector-version: .\+" ../../../antora.yml | grep -o "\d\+\.\d\+\.\d\+")
3-
SCALA_VERSION=$(grep -o "scala-version: .\+" ../../../antora.yml | grep -o "\d\+\.\d\+")
3+
EXACT_SCALA_VERSION=$(grep -o "exact-scala-version: .\+" ../../../antora.yml | grep -o "\d\+\.\d\+\.\d\+")
4+
SCALA_VERSION=$(grep -o " scala-version: .\+" ../../../antora.yml | grep -o "\d\+\.\d\+")
5+
SPARK_VERSION=$(grep -o "spark-version: .\+" ../../../antora.yml | grep -o "\d\+\.\d\+\.\d\+")
46

57
mkdir -p scala-example
68
cd scala-example
79

810
cp $EXAMPLES_ROOT/scala/build.sbt .
11+
sed -i '' -e "s/{exact-scala-version}/$EXACT_SCALA_VERSION/g" build.sbt
12+
sed -i '' -e "s/{spark-version}/$SPARK_VERSION/g" build.sbt
13+
sed -i '' -e "s/{exact-connector-version}/$CONNECTOR_VERSION/g" build.sbt
914
cp $EXAMPLES_ROOT/example.jsonl .
1015

1116
mkdir -p src/main/scala
@@ -16,4 +21,4 @@ sbt package
1621
$SPARK_HOME/bin/spark-submit \
1722
--packages org.neo4j:neo4j-connector-apache-spark_${SCALA_VERSION}:${CONNECTOR_VERSION}_for_spark_3 \
1823
--class SparkApp \
19-
target/scala-2.12/spark-app_2.12-1.0.jar
24+
target/scala-${SCALA_VERSION}/spark-app_${SCALA_VERSION}-1.0.jar

0 commit comments

Comments
 (0)