Skip to content

Commit 079f34d

Browse files
refactor: update dependencies to use spring-boot-starter-data-mongodb and adjust Lombok configuration
1 parent 00129e1 commit 079f34d

File tree

1 file changed

+30
-9
lines changed

1 file changed

+30
-9
lines changed

Diff for: pom.xml

+30-9
Original file line numberDiff line numberDiff line change
@@ -32,35 +32,56 @@
3232
<dependencies>
3333
<dependency>
3434
<groupId>org.springframework.boot</groupId>
35-
<artifactId>spring-boot-starter-web</artifactId>
35+
<artifactId>spring-boot-starter-data-mongodb</artifactId>
3636
</dependency>
37-
3837
<dependency>
3938
<groupId>org.springframework.boot</groupId>
40-
<artifactId>spring-boot-starter-test</artifactId>
41-
<scope>test</scope>
39+
<artifactId>spring-boot-starter-web</artifactId>
4240
</dependency>
41+
4342
<dependency>
4443
<groupId>org.springframework.boot</groupId>
4544
<artifactId>spring-boot-devtools</artifactId>
4645
<scope>runtime</scope>
47-
</dependency>
48-
<dependency>
49-
<groupId>org.springframework.boot</groupId>
50-
<artifactId>spring-boot-starter-data-mongodb</artifactId>
46+
<optional>true</optional>
5147
</dependency>
5248
<dependency>
5349
<groupId>org.projectlombok</groupId>
5450
<artifactId>lombok</artifactId>
55-
<scope>provided</scope>
51+
<optional>true</optional>
52+
</dependency>
53+
<dependency>
54+
<groupId>org.springframework.boot</groupId>
55+
<artifactId>spring-boot-starter-test</artifactId>
56+
<scope>test</scope>
5657
</dependency>
5758
</dependencies>
5859

5960
<build>
6061
<plugins>
62+
<plugin>
63+
<groupId>org.apache.maven.plugins</groupId>
64+
<artifactId>maven-compiler-plugin</artifactId>
65+
<configuration>
66+
<annotationProcessorPaths>
67+
<path>
68+
<groupId>org.projectlombok</groupId>
69+
<artifactId>lombok</artifactId>
70+
</path>
71+
</annotationProcessorPaths>
72+
</configuration>
73+
</plugin>
6174
<plugin>
6275
<groupId>org.springframework.boot</groupId>
6376
<artifactId>spring-boot-maven-plugin</artifactId>
77+
<configuration>
78+
<excludes>
79+
<exclude>
80+
<groupId>org.projectlombok</groupId>
81+
<artifactId>lombok</artifactId>
82+
</exclude>
83+
</excludes>
84+
</configuration>
6485
</plugin>
6586
</plugins>
6687
</build>

0 commit comments

Comments
 (0)