Skip to content

Commit eec7a8f

Browse files
committed
Remove Web depedency from Freemarker starter
Now that Spring Boot supports Freemarker for both Spring MVC and Spring WebFlux, the dedicated starter should not pull the Web starter transitively and let developers manually choose the web stack. Closes spring-projectsgh-11246
1 parent 32b817e commit eec7a8f

File tree

5 files changed

+20
-5
lines changed
  • spring-boot-project/spring-boot-starters/spring-boot-starter-freemarker
  • spring-boot-samples
    • spring-boot-sample-actuator-custom-security
    • spring-boot-sample-actuator-ui
    • spring-boot-sample-jpa
    • spring-boot-sample-web-freemarker

5 files changed

+20
-5
lines changed

Diff for: spring-boot-project/spring-boot-starters/spring-boot-starter-freemarker/pom.xml

+4-5
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@
1818
<groupId>org.springframework.boot</groupId>
1919
<artifactId>spring-boot-starter</artifactId>
2020
</dependency>
21-
<dependency>
22-
<groupId>org.springframework.boot</groupId>
23-
<artifactId>spring-boot-starter-web</artifactId>
24-
</dependency>
2521
<dependency>
2622
<groupId>org.freemarker</groupId>
2723
<artifactId>freemarker</artifactId>
@@ -32,7 +28,10 @@
3228
</dependency>
3329
</dependencies>
3430
<build>
35-
<plugins>
31+
<plugins><dependency>
32+
<groupId>org.springframework.boot</groupId>
33+
<artifactId>spring-boot-starter-freemarker</artifactId>
34+
</dependency>
3635
<plugin>
3736
<groupId>org.basepom.maven</groupId>
3837
<artifactId>duplicate-finder-maven-plugin</artifactId>

Diff for: spring-boot-samples/spring-boot-sample-actuator-custom-security/pom.xml

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
</properties>
1717
<dependencies>
1818
<!-- Compile -->
19+
<dependency>
20+
<groupId>org.springframework.boot</groupId>
21+
<artifactId>spring-boot-starter-web</artifactId>
22+
</dependency>
1923
<dependency>
2024
<groupId>org.springframework.boot</groupId>
2125
<artifactId>spring-boot-starter-actuator</artifactId>

Diff for: spring-boot-samples/spring-boot-sample-actuator-ui/pom.xml

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
<groupId>org.springframework.boot</groupId>
2121
<artifactId>spring-boot-starter-actuator</artifactId>
2222
</dependency>
23+
<dependency>
24+
<groupId>org.springframework.boot</groupId>
25+
<artifactId>spring-boot-starter-web</artifactId>
26+
</dependency>
2327
<dependency>
2428
<groupId>org.springframework.boot</groupId>
2529
<artifactId>spring-boot-starter-freemarker</artifactId>

Diff for: spring-boot-samples/spring-boot-sample-jpa/pom.xml

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
</properties>
1717
<dependencies>
1818
<!-- Compile -->
19+
<dependency>
20+
<groupId>org.springframework.boot</groupId>
21+
<artifactId>spring-boot-starter-web</artifactId>
22+
</dependency>
1923
<dependency>
2024
<groupId>org.springframework.boot</groupId>
2125
<artifactId>spring-boot-starter-freemarker</artifactId>

Diff for: spring-boot-samples/spring-boot-sample-web-freemarker/pom.xml

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
</properties>
1818
<dependencies>
1919
<!-- Compile -->
20+
<dependency>
21+
<groupId>org.springframework.boot</groupId>
22+
<artifactId>spring-boot-starter-web</artifactId>
23+
</dependency>
2024
<dependency>
2125
<groupId>org.springframework.boot</groupId>
2226
<artifactId>spring-boot-starter-freemarker</artifactId>

0 commit comments

Comments
 (0)