Skip to content

Commit fda5a3a

Browse files
authored
Move dependency versions to properties (#945) (#960)
1 parent 0219829 commit fda5a3a

File tree

2 files changed

+53
-34
lines changed

2 files changed

+53
-34
lines changed

pom.xml

Lines changed: 53 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,48 @@
33
http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
55

6+
<groupId>org.neo4j.driver</groupId>
7+
<artifactId>neo4j-java-driver-parent</artifactId>
8+
<version>4.2-SNAPSHOT</version>
9+
10+
<packaging>pom</packaging>
11+
<name>Neo4j Java Driver Project</name>
12+
<description>A project for building a Java driver for the Neo4j Bolt protocol.</description>
13+
<url>https://github.com/neo4j/neo4j-java-driver</url>
14+
615
<properties>
716
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
817
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
918
<maven.compiler.source>1.8</maven.compiler.source>
1019
<maven.compiler.target>1.8</maven.compiler.target>
1120
<rootDir>${project.basedir}</rootDir>
12-
<surefire.and.failsafe.version>2.22.1</surefire.and.failsafe.version>
13-
<junit.version>5.7.2</junit.version>
1421
<parallelizable.it.forkCount>1C</parallelizable.it.forkCount>
1522
<!-- All tests tagged are to be executed in parallel -->
1623
<parallelizable.it.tags>parallelizableIT</parallelizable.it.tags>
17-
</properties>
18-
19-
<groupId>org.neo4j.driver</groupId>
20-
<artifactId>neo4j-java-driver-parent</artifactId>
21-
<version>4.2-SNAPSHOT</version>
24+
<surefire.and.failsafe.version>2.22.1</surefire.and.failsafe.version>
2225

23-
<packaging>pom</packaging>
24-
<name>Neo4j Java Driver Project</name>
25-
<description>A project for building a Java driver for the Neo4j Bolt protocol.</description>
26-
<url>https://github.com/neo4j/neo4j-java-driver</url>
26+
<!-- Versions -->
27+
<reactive-streams.version>1.0.3</reactive-streams.version>
28+
<!-- Please note that when updating this dependency -->
29+
<!-- (i.e. due to a security vulnerability or bug) that the -->
30+
<!-- corresponding server dependency also needs updating.-->
31+
<netty-handler.version>4.1.65.Final</netty-handler.version>
32+
<!-- Please note that when updating this dependency -->
33+
<!-- (i.e. due to a security vulnerability or bug) that the -->
34+
<!-- corresponding server dependency also needs updating.-->
35+
<reactor-bom.version>Dysprosium-SR20</reactor-bom.version>
36+
<rxjava.version>2.2.21</rxjava.version>
37+
<slf4j-api.version>1.7.31</slf4j-api.version>
38+
<hamcrest-junit.version>2.0.0.0</hamcrest-junit.version>
39+
<mockito-core.version>2.28.2</mockito-core.version>
40+
<junit.version>5.7.2</junit.version>
41+
<jarchivelib.version>1.1.0</jarchivelib.version>
42+
<bouncycastle-jdk15on.version>1.69</bouncycastle-jdk15on.version>
43+
<logback-classic.version>1.2.3</logback-classic.version>
44+
<jackson.version>2.12.3</jackson.version>
45+
<lombok.version>1.18.20</lombok.version>
46+
<svm.version>20.3.2</svm.version>
47+
</properties>
2748

2849
<modules>
2950
<module>driver</module>
@@ -60,23 +81,17 @@
6081
<dependency>
6182
<groupId>org.reactivestreams</groupId>
6283
<artifactId>reactive-streams</artifactId>
63-
<version>1.0.3</version>
84+
<version>${reactive-streams.version}</version>
6485
</dependency>
6586
<dependency>
66-
<!-- Please note that when updating this dependency -->
67-
<!-- (i.e. due to a security vulnerability or bug) that the -->
68-
<!-- corresponding server dependency also needs updating.-->
6987
<groupId>io.netty</groupId>
7088
<artifactId>netty-handler</artifactId>
71-
<version>4.1.65.Final</version>
89+
<version>${netty-handler.version}</version>
7290
</dependency>
7391
<dependency>
74-
<!-- Please note that when updating this dependency -->
75-
<!-- (i.e. due to a security vulnerability or bug) that the -->
76-
<!-- corresponding server dependency also needs updating.-->
7792
<groupId>io.projectreactor</groupId>
7893
<artifactId>reactor-bom</artifactId>
79-
<version>Dysprosium-SR20</version>
94+
<version>${reactor-bom.version}</version>
8095
<type>pom</type>
8196
<scope>import</scope>
8297
</dependency>
@@ -85,27 +100,27 @@
85100
<dependency>
86101
<groupId>io.reactivex.rxjava2</groupId>
87102
<artifactId>rxjava</artifactId>
88-
<version>2.2.21</version>
103+
<version>${rxjava.version}</version>
89104
</dependency>
90105

91106
<!-- Optional dependencies -->
92107
<dependency>
93108
<groupId>org.slf4j</groupId>
94109
<artifactId>slf4j-api</artifactId>
95-
<version>1.7.31</version>
110+
<version>${slf4j-api.version}</version>
96111
</dependency>
97112

98113
<!-- Test dependencies -->
99114
<dependency>
100115
<groupId>org.hamcrest</groupId>
101116
<artifactId>hamcrest-junit</artifactId>
102-
<version>2.0.0.0</version>
117+
<version>${hamcrest-junit.version}</version>
103118
<scope>test</scope>
104119
</dependency>
105120
<dependency>
106121
<groupId>org.mockito</groupId>
107122
<artifactId>mockito-core</artifactId>
108-
<version>2.28.2</version>
123+
<version>${mockito-core.version}</version>
109124
<scope>test</scope>
110125
</dependency>
111126
<dependency>
@@ -117,45 +132,51 @@
117132
<dependency>
118133
<groupId>org.rauschig</groupId>
119134
<artifactId>jarchivelib</artifactId>
120-
<version>1.1.0</version>
135+
<version>${jarchivelib.version}</version>
121136
<scope>test</scope>
122137
</dependency>
123138
<dependency>
124139
<groupId>org.bouncycastle</groupId>
125140
<artifactId>bcprov-jdk15on</artifactId>
126-
<version>1.69</version>
141+
<version>${bouncycastle-jdk15on.version}</version>
127142
<scope>test</scope>
128143
</dependency>
129144
<dependency>
130145
<groupId>org.bouncycastle</groupId>
131146
<artifactId>bcpkix-jdk15on</artifactId>
132-
<version>1.69</version>
147+
<version>${bouncycastle-jdk15on.version}</version>
133148
<scope>test</scope>
134149
</dependency>
135150
<dependency>
136151
<groupId>ch.qos.logback</groupId>
137152
<artifactId>logback-classic</artifactId>
138-
<version>1.2.3</version>
153+
<version>${logback-classic.version}</version>
139154
<scope>test</scope>
140155
</dependency>
141156

142-
<!-- Testkit Dependencies -->
157+
<!-- Testkit Backend Dependencies -->
143158
<dependency>
144159
<groupId>com.fasterxml.jackson.core</groupId>
145160
<artifactId>jackson-core</artifactId>
146-
<version>2.12.3</version>
161+
<version>${jackson.version}</version>
147162
</dependency>
148163
<dependency>
149164
<groupId>com.fasterxml.jackson.core</groupId>
150165
<artifactId>jackson-databind</artifactId>
151-
<version>2.12.3</version>
166+
<version>${jackson.version}</version>
167+
</dependency>
168+
<dependency>
169+
<groupId>org.projectlombok</groupId>
170+
<artifactId>lombok</artifactId>
171+
<version>${lombok.version}</version>
172+
<scope>provided</scope>
152173
</dependency>
153174

154175
<!-- Graal VM -->
155176
<dependency>
156177
<groupId>org.graalvm.nativeimage</groupId>
157178
<artifactId>svm</artifactId>
158-
<version>20.3.2</version>
179+
<version>${svm.version}</version>
159180
<!-- Provided scope as it is only needed for compiling the SVM substitution classes -->
160181
<scope>provided</scope>
161182
</dependency>

testkit-backend/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
<dependency>
3636
<groupId>org.projectlombok</groupId>
3737
<artifactId>lombok</artifactId>
38-
<version>1.18.20</version>
39-
<scope>provided</scope>
4038
</dependency>
4139

4240
<!-- Test Dependencies -->

0 commit comments

Comments
 (0)