Skip to content

Commit dc35cd6

Browse files
chore: improve pom.xml
1 parent 8ccdd0e commit dc35cd6

10 files changed

Lines changed: 162 additions & 1271 deletions

File tree

README.md

Lines changed: 1 addition & 808 deletions
Large diffs are not rendered by default.

pom.xml

Lines changed: 20 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
<artifactId>snapshot-testing-parent</artifactId>
1515
<version>${revision}</version>
1616
<name>finoid-snapshot-testing-parent</name>
17-
<description>A Java library designed to streamline testing by integrating Testcontainers, data fakers, test
18-
fixtures, snapshot testing.
19-
</description>
17+
<description>A Java library designed to streamline testing by snapshot testing.</description>
2018
<packaging>pom</packaging>
2119

2220
<properties>
@@ -26,20 +24,21 @@
2624
<maven.compiler.release>21</maven.compiler.release>
2725
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2826

29-
30-
<checker-qual.version>3.51.1</checker-qual.version>
31-
<!-- <commons-lang3.version>3.19.0</commons-lang3.version>-->
32-
<flatten-maven-plugin.version>1.7.3</flatten-maven-plugin.version>
33-
<jspecify.version>1.0.0</jspecify.version>
34-
<lombok.version>1.18.42</lombok.version>
35-
3627
<!-- This revision id (version) is overridden on deploy, so this revision number is only applicable for local usage -->
3728
<revision>0.10.0</revision>
3829

39-
<!-- <spring-boot.version>3.5.9</spring-boot.version>-->
40-
30+
<assertj.version>3.11.1</assertj.version>
31+
<checker-qual.version>3.51.1</checker-qual.version>
4132
<codequality-maven-plugin.version>0.12.8</codequality-maven-plugin.version>
4233
<code-quality.feature.enabled>true</code-quality.feature.enabled>
34+
<flatten-maven-plugin.version>1.7.3</flatten-maven-plugin.version>
35+
<jackson2.version>2.20.1</jackson2.version>
36+
<jackson3.version>3.0.3</jackson3.version>
37+
<jspecify.version>1.0.0</jspecify.version>
38+
<junit5.version>5.12.2</junit5.version>
39+
<junit6.version>6.0.2</junit6.version>
40+
<lombok.version>1.18.42</lombok.version>
41+
<slf4j.version>2.0.17</slf4j.version>
4342
</properties>
4443

4544
<modules>
@@ -52,15 +51,6 @@
5251

5352
<dependencyManagement>
5453
<dependencies>
55-
<!-- <dependency>-->
56-
<!-- <groupId>org.springframework.boot</groupId>-->
57-
<!-- <artifactId>spring-boot-dependencies</artifactId>-->
58-
<!-- <version>${spring-boot.version}</version>-->
59-
<!-- <type>pom</type>-->
60-
<!-- <scope>import</scope>-->
61-
<!-- </dependency>-->
62-
63-
6454
<dependency>
6555
<groupId>io.github.finoid</groupId>
6656
<artifactId>snapshot-testing-core</artifactId>
@@ -81,33 +71,11 @@
8171
<artifactId>snapshot-testing-junit5</artifactId>
8272
<version>${revision}</version>
8373
</dependency>
84-
85-
<!-- <dependency>-->
86-
<!-- <groupId>io.github.finoid</groupId>-->
87-
<!-- <artifactId>testify-core</artifactId>-->
88-
<!-- <version>${revision}</version>-->
89-
<!-- </dependency>-->
90-
<!-- <dependency>-->
91-
<!-- <groupId>io.github.finoid</groupId>-->
92-
<!-- <artifactId>testify-snapshot</artifactId>-->
93-
<!-- <version>${revision}</version>-->
94-
<!-- </dependency>-->
95-
<!-- <dependency>-->
96-
<!-- <groupId>io.github.finoid</groupId>-->
97-
<!-- <artifactId>testify-spring</artifactId>-->
98-
<!-- <version>${revision}</version>-->
99-
<!-- </dependency>-->
100-
<!-- <dependency>-->
101-
<!-- <groupId>io.github.finoid</groupId>-->
102-
<!-- <artifactId>testify-spring-autoconfigure</artifactId>-->
103-
<!-- <version>${revision}</version>-->
104-
<!-- </dependency>-->
105-
<!-- -->
106-
<!-- <dependency>-->
107-
<!-- <groupId>org.apache.commons</groupId>-->
108-
<!-- <artifactId>commons-lang3</artifactId>-->
109-
<!-- <version>${commons-lang3.version}</version>-->
110-
<!-- </dependency>-->
74+
<dependency>
75+
<groupId>io.github.finoid</groupId>
76+
<artifactId>snapshot-testing-junit6</artifactId>
77+
<version>${revision}</version>
78+
</dependency>
11179
<dependency>
11280
<groupId>org.checkerframework</groupId>
11381
<artifactId>checker-qual</artifactId>
@@ -117,32 +85,11 @@
11785
</dependencyManagement>
11886

11987
<dependencies>
120-
<!-- <dependency>-->
121-
<!-- <groupId>org.apache.commons</groupId>-->
122-
<!-- <artifactId>commons-lang3</artifactId>-->
123-
<!-- </dependency>-->
124-
<!-- <dependency>-->
125-
<!-- <groupId>org.junit.jupiter</groupId>-->
126-
<!-- <artifactId>junit-jupiter-api</artifactId>-->
127-
<!-- </dependency>-->
128-
<!-- <dependency>-->
129-
<!-- <groupId>org.junit.jupiter</groupId>-->
130-
<!-- <artifactId>junit-jupiter-engine</artifactId>-->
131-
<!-- </dependency>-->
132-
<!-- <dependency>-->
133-
<!-- <groupId>org.junit.jupiter</groupId>-->
134-
<!-- <artifactId>junit-jupiter-params</artifactId>-->
135-
<!-- </dependency>-->
136-
<!-- -->
13788
<dependency>
13889
<groupId>org.jspecify</groupId>
13990
<artifactId>jspecify</artifactId>
14091
<version>${jspecify.version}</version>
14192
</dependency>
142-
<!-- <dependency>-->
143-
<!-- <groupId>org.mockito</groupId>-->
144-
<!-- <artifactId>mockito-junit-jupiter</artifactId>-->
145-
<!-- </dependency>-->
14693
<dependency>
14794
<groupId>org.projectlombok</groupId>
14895
<artifactId>lombok</artifactId>
@@ -168,17 +115,16 @@
168115
</licenses>
169116

170117
<scm>
171-
<url>https://github.com/finoid/testify</url>
172-
<connection>scm:git:https://github.com/finoid/testify.git</connection>
173-
<developerConnection>scm:git:ssh://git@github.com/finoid/testify.git</developerConnection>
118+
<url>https://github.com/finoid/snapshot-testing</url>
119+
<connection>scm:git:https://github.com/finoid/snapshot-testing.git</connection>
120+
<developerConnection>scm:git:ssh://git@github.com/finoid/snapshot-testing.git</developerConnection>
174121
<tag>HEAD</tag>
175122
</scm>
176123

177-
<url>https://github.com/finoid/testify</url>
124+
<url>https://github.com/finoid/snapshot-testing</url>
178125

179126
<build>
180127
<plugins>
181-
182128
<plugin>
183129
<groupId>io.github.finoid</groupId>
184130
<artifactId>codequality-maven-plugin</artifactId>
@@ -224,7 +170,6 @@
224170
</configuration>
225171
</plugin>
226172

227-
228173
<plugin>
229174
<groupId>org.apache.maven.plugins</groupId>
230175
<artifactId>maven-enforcer-plugin</artifactId>
@@ -235,20 +180,12 @@
235180
<goal>enforce</goal>
236181
</goals>
237182
<configuration>
238-
<skip>true</skip>
239183
<rules>
240184
<banDuplicateClasses>
241185
<findAllDuplicates>true</findAllDuplicates>
242186
<ignoreClasses>
243187
<ignoreClass>module-info</ignoreClass>
244-
<!-- Ignored due to shadowed classes in wiremock-standalone -->
245-
<ignoreClass>org/jspecify/annotations/NullMarked</ignoreClass>
246-
<ignoreClass>org/jspecify/annotations/NullUnmarked</ignoreClass>
247-
<ignoreClass>org/jspecify/annotations/Nullable</ignoreClass>
248-
<ignoreClass>org/jspecify/annotations/NonNull</ignoreClass>
249-
<ignoreClass>org/jspecify/annotations/NonNull</ignoreClass>
250188
</ignoreClasses>
251-
<ignoreWhenIdentical>true</ignoreWhenIdentical>
252189
</banDuplicateClasses>
253190
</rules>
254191
</configuration>

snapshot-testing-core/pom.xml

Lines changed: 24 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -20,95 +20,72 @@
2020
<maven.compiler.source>21</maven.compiler.source>
2121
<maven.compiler.release>21</maven.compiler.release>
2222
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23+
24+
<commons-io.version>2.21.0</commons-io.version>
25+
<mockito.version>5.21.0</mockito.version>
2326
</properties>
2427

2528
<dependencies>
2629
<dependency>
27-
<groupId>org.checkerframework</groupId>
28-
<artifactId>checker-qual</artifactId>
30+
<groupId>org.assertj</groupId>
31+
<artifactId>assertj-core</artifactId>
32+
<version>${assertj.version}</version>
2933
</dependency>
30-
31-
<!-- compileOnly -->
3234
<dependency>
33-
<groupId>com.fasterxml.jackson.core</groupId>
34-
<artifactId>jackson-core</artifactId>
35-
<version>2.20.1</version>
36-
<scope>provided</scope>
35+
<groupId>org.checkerframework</groupId>
36+
<artifactId>checker-qual</artifactId>
3737
</dependency>
38-
3938
<dependency>
40-
<groupId>com.fasterxml.jackson.core</groupId>
41-
<artifactId>jackson-databind</artifactId>
42-
<version>2.20.1</version>
43-
<scope>provided</scope>
39+
<groupId>org.opentest4j</groupId>
40+
<artifactId>opentest4j</artifactId>
41+
<version>1.3.0</version>
4442
</dependency>
45-
4643
<dependency>
4744
<groupId>org.slf4j</groupId>
4845
<artifactId>slf4j-api</artifactId>
49-
<version>2.0.17</version>
46+
<version>${slf4j.version}</version>
47+
<scope>provided</scope>
5048
</dependency>
5149

5250
<dependency>
53-
<groupId>org.slf4j</groupId>
54-
<artifactId>slf4j-simple</artifactId>
55-
<version>2.0.17</version>
51+
<groupId>commons-io</groupId>
52+
<artifactId>commons-io</artifactId>
53+
<version>${commons-io.version}</version>
5654
<scope>test</scope>
5755
</dependency>
58-
59-
<!-- implementation -->
60-
<dependency>
61-
<groupId>org.assertj</groupId>
62-
<artifactId>assertj-core</artifactId>
63-
<version>3.11.1</version>
64-
</dependency>
65-
66-
<dependency>
67-
<groupId>org.opentest4j</groupId>
68-
<artifactId>opentest4j</artifactId>
69-
<version>1.3.0</version>
70-
</dependency>
71-
72-
<!-- testImplementation -->
7356
<dependency>
7457
<groupId>org.mockito</groupId>
7558
<artifactId>mockito-junit-jupiter</artifactId>
76-
<version>2.23.0</version>
59+
<version>${mockito.version}</version>
7760
<scope>test</scope>
7861
</dependency>
79-
8062
<dependency>
8163
<groupId>org.mockito</groupId>
8264
<artifactId>mockito-core</artifactId>
83-
<version>2.23.4</version>
65+
<version>${mockito.version}</version>
8466
<scope>test</scope>
8567
</dependency>
86-
8768
<dependency>
8869
<groupId>org.junit.jupiter</groupId>
8970
<artifactId>junit-jupiter-api</artifactId>
90-
<version>5.3.2</version>
91-
<scope>test</scope>
71+
<version>${junit5.version}</version>
9272
</dependency>
93-
9473
<dependency>
9574
<groupId>org.junit.jupiter</groupId>
9675
<artifactId>junit-jupiter-engine</artifactId>
97-
<version>5.3.2</version>
76+
<version>${junit5.version}</version>
9877
<scope>test</scope>
9978
</dependency>
100-
10179
<dependency>
10280
<groupId>org.junit.jupiter</groupId>
10381
<artifactId>junit-jupiter-params</artifactId>
104-
<version>5.3.2</version>
82+
<version>${junit5.version}</version>
10583
<scope>test</scope>
10684
</dependency>
107-
10885
<dependency>
109-
<groupId>commons-io</groupId>
110-
<artifactId>commons-io</artifactId>
111-
<version>2.6</version>
86+
<groupId>org.slf4j</groupId>
87+
<artifactId>slf4j-simple</artifactId>
88+
<version>${slf4j.version}</version>
11289
<scope>test</scope>
11390
</dependency>
11491
</dependencies>

0 commit comments

Comments
 (0)