Skip to content

Commit d63c450

Browse files
author
Piotr Kubicki
committed
fix: bump Spring Boot to v3.5.6, rename app to "appointment-booking", remove unused dependencies from training setup
1 parent ced1f7c commit d63c450

File tree

7 files changed

+24
-113
lines changed

7 files changed

+24
-113
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ jobs:
3737
with:
3838
name: surefire-failsafe-html-report
3939
path: target/reports/surefire.html
40-
retention-days: 90
40+
retention-days: 20

HELP.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# Read Me First
2-
The following was discovered as part of building this project:
3-
4-
* The original package name 'com.capgemini.training.appointment-booking-app' is invalid and this project uses 'com.capgemini.training.appointment_booking_app' instead.
5-
61
# Getting Started
72

83
### Reference Documentation

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The repository grows in complexity and functionality across branches:
1616

1717
| Branch | Description |
1818
|--------|------------------------------------------------------------------------|
19-
| `main` | Base Spring Boot setup with basic health and H2 endpoints |
19+
| `main` | Base Spring Boot setup with basic health endpoints |
2020
| `feature/1-create-new-application` | Same as main |
2121
| `feature/2-dataaccess` | Persistence layer with Spring Data JPA and H2, part 1 |
2222
| `feature/2-dataaccess-repositories` | Persistence layer with Spring Data JPA and H2, part 2 |
@@ -31,7 +31,7 @@ After starting the application, you can access the following in your browser:
3131
| URL | Available from | Description |
3232
|-----|----------------|-------------|
3333
| [http://localhost:8080/actuator/health](http://localhost:8080/actuator/health) | `main` | Basic application health check |
34-
| [http://localhost:8080/h2-console](http://localhost:8080/h2-console) | `main` | In-memory H2 database console |
34+
| [http://localhost:8080/h2-console](http://localhost:8080/h2-console) | `feature/2-dataaccess` | In-memory H2 database console |
3535
| [http://localhost:8080/swagger-ui/index.html](http://localhost:8080/swagger-ui/index.html) | `feature/4-services` | OpenAPI UI for testing and exploring REST API |
3636

3737
## 🛠 Tech Stack

pom.xml

Lines changed: 15 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,15 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>3.5.0</version>
8+
<version>3.5.6</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111
<groupId>com.capgemini.training</groupId>
12-
<artifactId>appointment-booking-app</artifactId>
12+
<artifactId>appointment-booking</artifactId>
1313
<version>0.0.1-SNAPSHOT</version>
14-
<name>appointment-booking-app</name>
14+
<name>appointment-booking</name>
1515
<description>Demo project for Spring Boot</description>
16-
<url/>
17-
<licenses>
18-
<license/>
19-
</licenses>
20-
<developers>
21-
<developer/>
22-
</developers>
23-
<scm>
24-
<connection/>
25-
<developerConnection/>
26-
<tag/>
27-
<url/>
28-
</scm>
16+
2917
<properties>
3018
<java.version>21</java.version>
3119
</properties>
@@ -36,92 +24,29 @@
3624
</dependency>
3725
<dependency>
3826
<groupId>org.springframework.boot</groupId>
39-
<artifactId>spring-boot-starter-data-jpa</artifactId>
27+
<artifactId>spring-boot-starter-test</artifactId>
28+
<scope>test</scope>
4029
</dependency>
4130
<dependency>
4231
<groupId>org.springframework.boot</groupId>
4332
<artifactId>spring-boot-starter-web</artifactId>
4433
</dependency>
45-
<dependency>
46-
<groupId>org.flywaydb</groupId>
47-
<artifactId>flyway-core</artifactId>
48-
</dependency>
49-
<dependency>
50-
<groupId>com.h2database</groupId>
51-
<artifactId>h2</artifactId>
52-
<scope>runtime</scope>
53-
</dependency>
54-
<dependency>
55-
<groupId>org.projectlombok</groupId>
56-
<artifactId>lombok</artifactId>
57-
<optional>true</optional>
58-
</dependency>
59-
<dependency>
60-
<groupId>org.springframework.boot</groupId>
61-
<artifactId>spring-boot-starter-test</artifactId>
62-
<scope>test</scope>
63-
</dependency>
6434
</dependencies>
6535

6636
<build>
6737
<plugins>
68-
<plugin>
69-
<groupId>org.apache.maven.plugins</groupId>
70-
<artifactId>maven-compiler-plugin</artifactId>
71-
<configuration>
72-
<annotationProcessorPaths>
73-
<path>
74-
<groupId>org.projectlombok</groupId>
75-
<artifactId>lombok</artifactId>
76-
</path>
77-
</annotationProcessorPaths>
78-
</configuration>
79-
</plugin>
38+
<!--
39+
Not strictly mandatory, but in most Maven-based Spring Boot projects, it's highly recommended,
40+
because it simplifies packaging and deployment.
41+
The spring-boot-maven-plugin enables packaging the application as an executable JAR,
42+
which includes all dependencies and a manifest pointing to the main class.
43+
It simplifies running the app via `java -jar` and integrates with Maven's lifecycle.
44+
This plugin is essential for deploying Spring Boot applications and supports features
45+
like layered JARs for Docker and custom packaging.
46+
-->
8047
<plugin>
8148
<groupId>org.springframework.boot</groupId>
8249
<artifactId>spring-boot-maven-plugin</artifactId>
83-
<configuration>
84-
<excludes>
85-
<exclude>
86-
<groupId>org.projectlombok</groupId>
87-
<artifactId>lombok</artifactId>
88-
</exclude>
89-
</excludes>
90-
</configuration>
91-
</plugin>
92-
<plugin>
93-
<groupId>org.apache.maven.plugins</groupId>
94-
<artifactId>maven-surefire-plugin</artifactId>
95-
<version>3.5.3</version>
96-
</plugin>
97-
<plugin>
98-
<groupId>org.apache.maven.plugins</groupId>
99-
<artifactId>maven-failsafe-plugin</artifactId>
100-
<version>3.5.3</version>
101-
<executions>
102-
<execution>
103-
<goals>
104-
<goal>integration-test</goal>
105-
<goal>verify</goal>
106-
</goals>
107-
</execution>
108-
</executions>
109-
</plugin>
110-
<plugin>
111-
<groupId>org.apache.maven.plugins</groupId>
112-
<artifactId>maven-surefire-report-plugin</artifactId>
113-
<version>3.5.3</version>
114-
<executions>
115-
<execution>
116-
<phase>verify</phase>
117-
<goals>
118-
<goal>report-only</goal>
119-
</goals>
120-
</execution>
121-
</executions>
122-
<configuration>
123-
<aggregate>true</aggregate>
124-
</configuration>
12550
</plugin>
12651
</plugins>
12752
</build>

src/main/java/com/capgemini/training/appointmentbooking/AppointmentBookingAppApplication.java renamed to src/main/java/com/capgemini/training/appointmentbooking/AppointmentBookingApplication.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
import org.springframework.boot.autoconfigure.SpringBootApplication;
55

66
@SpringBootApplication
7-
public class AppointmentBookingAppApplication {
7+
public class AppointmentBookingApplication {
88

99
public static void main(String[] args) {
10-
SpringApplication.run(AppointmentBookingAppApplication.class, args);
10+
SpringApplication.run(AppointmentBookingApplication.class, args);
1111
}
1212

1313
}
Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
1-
spring.application.name=appointment-booking-app
2-
3-
spring.h2.console.enabled=true
4-
5-
spring.datasource.url=jdbc:h2:mem:appointmentbooking
6-
spring.datasource.username=sa
7-
spring.datasource.password=password
1+
spring.application.name=appointment-booking
82

93
management.endpoint.health.show-components=always
104
management.endpoint.health.show-details=always
11-
management.endpoints.web.exposure.include=*
12-
13-
spring.flyway.locations=classpath:db/migration
14-
spring.flyway.enabled=true
15-
spring.flyway.clean-on-validation-error=true
5+
management.endpoints.web.exposure.include=*

src/test/java/com/capgemini/training/appointmentbooking/AppointmentBookingAppApplicationIT.java renamed to src/test/java/com/capgemini/training/appointmentbooking/AppointmentBookingApplicationIT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
import org.springframework.boot.test.context.SpringBootTest;
55

66
@SpringBootTest
7-
class AppointmentBookingAppApplicationIT {
7+
class AppointmentBookingApplicationIT {
88

99
@Test
1010
void contextLoads() {
11+
// loads application context
1112
}
1213

1314
}

0 commit comments

Comments
 (0)