Skip to content

Commit 035f577

Browse files
committed
upgrade java 21 to java 25
1 parent 5ad0e1c commit 035f577

File tree

11 files changed

+42
-40
lines changed

11 files changed

+42
-40
lines changed

.github/workflows/spring-boot.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,24 @@ jobs:
2424
- name: Checkout
2525
uses: actions/checkout@v4
2626

27-
- name: Set up JDK 21
27+
- name: Set up JDK 25
2828
uses: actions/setup-java@v4
2929
with:
30-
java-version: "21"
30+
java-version: "25"
3131
distribution: "temurin"
3232
cache: maven
3333

3434
- name: Build
35-
run: mvn -B clean install -DskipTests
35+
run: ./mvnw -B clean install -DskipTests
3636

3737
- name: Lint
38-
run: mvn -B spotless:check
38+
run: ./mvnw -B spotless:check
3939

4040
- name: Unit tests
41-
run: mvn -B test
41+
run: ./mvnw -B test
4242

4343
- name: Integration tests
44-
run: mvn -B failsafe:integration-test failsafe:verify
44+
run: ./mvnw -B failsafe:integration-test failsafe:verify
4545

4646
push-image:
4747
needs: build

.github/workflows/svelte-kit.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,19 @@ jobs:
108108
- name: Checkout
109109
uses: actions/checkout@v4
110110

111-
- name: Set up JDK 21
111+
- name: Set up JDK 25
112112
uses: actions/setup-java@v4
113113
with:
114-
java-version: "21"
114+
java-version: "25"
115115
distribution: "temurin"
116116
cache: maven
117117

118118
- name: Build Spring Boot
119-
run: mvn -B clean install -DskipTests
119+
run: ./mvnw -B clean install -DskipTests
120120
working-directory: backend/spring-boot
121121

122122
- name: Start Spring Boot
123-
run: mvn spring-boot:run -Dspring-boot.run.profiles=dev &
123+
run: ./mvnw spring-boot:run -Dspring-boot.run.profiles=dev &
124124
working-directory: backend/spring-boot
125125

126126
- name: Wait for backend

CLAUDE.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ Bugzkit is a production-ready full-stack web application template with a Spring
1010

1111
### Backend (Spring Boot — `backend/spring-boot/`)
1212

13-
| Task | Command |
14-
|---|---|
15-
| Build (skip tests) | `mvn -B clean install -DskipTests` |
16-
| Run (dev profile) | `mvn spring-boot:run -Dspring-boot.run.profiles=dev` |
17-
| Unit tests | `mvn -B test` |
18-
| Integration tests | `mvn -B failsafe:integration-test failsafe:verify` |
19-
| Format check | `mvn -B spotless:check` |
20-
| Format fix | `mvn spotless:apply` |
13+
| Task | Command |
14+
|---|---------------------------------------------------------|
15+
| Build (skip tests) | `./mvnw -B clean install -DskipTests` |
16+
| Run (dev profile) | `./mvnw spring-boot:run -Dspring-boot.run.profiles=dev` |
17+
| Unit tests | `./mvnw -B test` |
18+
| Integration tests | `./mvnw -B failsafe:integration-test failsafe:verify` |
19+
| Format check | `./mvnw -B spotless:check` |
20+
| Format fix | `./mvnw spotless:apply` |
2121

2222
Integration tests use `*IT.java` suffix and run via Maven Failsafe. They require Testcontainers (Docker must be running).
2323

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The goal is to provide a reliable and customizable foundation that eliminates re
3434
<details>
3535
<summary>Backend</summary>
3636

37-
- [Java 21](https://openjdk.org/projects/jdk/21/)
37+
- [Java 25](https://openjdk.org/projects/jdk/25/)
3838
- [SpringBoot](https://spring.io/projects/spring-boot)
3939
- [Postgres](https://www.postgresql.org/)
4040
- [Redis](https://redis.io/)

backend/spring-boot/.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
*
22
!src/
33
!pom.xml
4+
!.mvn/
5+
!mvnw
46
target/

backend/spring-boot/Dockerfile

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
FROM maven:sapmachine AS build
2-
RUN apt-get update; apt-get install -y curl \
3-
&& curl -sL https://deb.nodesource.com/setup_20.x | bash - \
4-
&& apt-get install -y nodejs \
5-
&& curl -L https://www.npmjs.com/install.sh | sh
1+
FROM eclipse-temurin:25-jdk AS build
2+
RUN apt-get update && apt-get install -y curl \
3+
&& curl -sL https://deb.nodesource.com/setup_22.x | bash - \
4+
&& apt-get install -y nodejs
65
WORKDIR /app
76
COPY pom.xml .
7+
COPY .mvn .mvn
8+
COPY mvnw .
89
COPY src ./src
9-
RUN mvn clean install -DskipTests
10+
RUN ./mvnw clean install -DskipTests
1011

11-
FROM eclipse-temurin:21-jre AS dev
12+
FROM eclipse-temurin:25-jre AS dev
13+
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
1214
WORKDIR /app
1315
COPY --from=build /app/target/*.jar bugzkit-api.jar
1416
ENTRYPOINT ["java", "-Dspring.profiles.active=dev", "-jar", "bugzkit-api.jar"]
1517

16-
FROM eclipse-temurin:21-jre AS prod
18+
FROM eclipse-temurin:25-jre AS prod
19+
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
1720
WORKDIR /app
1821
COPY --from=build /app/target/*.jar bugzkit-api.jar
1922
ENTRYPOINT ["java", "-Dspring.profiles.active=prod", "-jar", "bugzkit-api.jar"]

backend/spring-boot/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ docker-compose -f docker-compose-db.dev.yml up -d
1111
After the services are up and running, start the application:
1212

1313
```bash
14-
mvn clean install
15-
mvn spring-boot:run -Dspring-boot.run.profiles=dev
14+
./mvnw spring-boot:run -Dspring-boot.run.profiles=dev
1615
```
1716

1817
Alternatively, use IntelliJ IDEA. A pre-configured run configuration is available - just click and run!

backend/spring-boot/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<description>bugzkit api</description>
1818

1919
<properties>
20-
<java.version>21</java.version>
20+
<java.version>25</java.version>
2121
<lombok.version>1.18.42</lombok.version>
2222
<guava.version>33.5.0-jre</guava.version>
2323
<jwt.version>4.5.1</jwt.version>

docs/src/content/getting-started/using.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ To use `bugzkit` ensure you have the following software installed:
66

77
- [Gum](https://github.com/charmbracelet/gum)
88
- [Docker](https://www.docker.com/)
9-
- [Java 21](https://openjdk.org/projects/jdk/21/)
10-
- [Maven](https://maven.apache.org/)
9+
- [Java 25](https://openjdk.org/projects/jdk/25/)
1110
- [Node.js 22](https://nodejs.org/)
1211
- [pnpm](https://pnpm.io/)
1312

@@ -43,8 +42,7 @@ After the services are up and running, navigate to the `backend/spring-boot` dir
4342

4443
```bash
4544
cd backend/spring-boot
46-
mvn clean install
47-
mvn spring-boot:run -Dspring-boot.run.profiles=dev
45+
./mvnw spring-boot:run -Dspring-boot.run.profiles=dev
4846
```
4947

5048
Alternatively, use IntelliJ IDEA. A pre-configured run configuration is available - just click and run!

docs/src/content/how-it-works/testing.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ Unit tests use JUnit 5 with Mockito and don't require a running database or appl
1010

1111
```bash
1212
cd backend/spring-boot
13-
mvn -B test
13+
./mvnw -B test
1414
```
1515

1616
To run a single test class:
1717

1818
```bash
19-
mvn -B test -Dtest=MessageServiceTest
19+
./mvnw -B test -Dtest=MessageServiceTest
2020
```
2121

2222
To run a single test method:
2323

2424
```bash
25-
mvn -B test -Dtest=MessageServiceTest#getMessage
25+
./mvnw -B test -Dtest=MessageServiceTest#getMessage
2626
```
2727

2828
#### Integration Tests
@@ -31,13 +31,13 @@ Integration tests use Spring Boot Test with [Testcontainers](https://testcontain
3131

3232
```bash
3333
cd backend/spring-boot
34-
mvn -B failsafe:integration-test failsafe:verify
34+
./mvnw -B failsafe:integration-test failsafe:verify
3535
```
3636

3737
To run a single integration test:
3838

3939
```bash
40-
mvn -B failsafe:integration-test -Dit.test=AuthControllerIT failsafe:verify
40+
./mvnw -B failsafe:integration-test -Dit.test=AuthControllerIT failsafe:verify
4141
```
4242

4343
All integration tests extend the `DatabaseContainers` base class, which defines shared PostgreSQL and Redis containers using `@ServiceConnection` for automatic Spring Boot configuration.

0 commit comments

Comments
 (0)