Skip to content

Commit 10f1f9f

Browse files
committed
update dependencies
1 parent 19c067a commit 10f1f9f

9 files changed

Lines changed: 29 additions & 35 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-24.04
1212
timeout-minutes: 10
1313
steps:
14-
- uses: actions/checkout@v5
14+
- uses: actions/checkout@v7
1515
- uses: aboutbits/github-actions-java/setup-with-maven@v4
1616
with:
17-
java-version: 21
17+
java-version: 26
1818
- name: Test
1919
env:
2020
GITHUB_USER_NAME: ${{ github.actor }}

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ jobs:
1313
runs-on: ubuntu-24.04
1414
timeout-minutes: 15
1515
steps:
16-
- uses: actions/checkout@v5
16+
- uses: actions/checkout@v7
1717
with:
1818
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
1919
- uses: aboutbits/github-actions-base/git-setup@v2
2020
- uses: aboutbits/github-actions-java/setup-with-maven@v4
2121
with:
22-
java-version: 21
22+
java-version: 26
2323
- uses: aboutbits/github-actions-java/set-version-with-maven@v4
2424
with:
2525
version: "${{ github.event.inputs.version }}"

.idea/misc.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pom.xml

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>3.2.2</version>
9+
<version>4.0.4</version>
1010
<relativePath/> <!-- lookup parent from repository -->
1111
</parent>
1212

@@ -16,8 +16,8 @@
1616
<description>Spring Boot Email Service</description>
1717

1818
<properties>
19-
<java.version>21</java.version>
20-
<mapstruct.version>1.5.5.Final</mapstruct.version>
19+
<java.version>26</java.version>
20+
<mapstruct.version>1.6.3</mapstruct.version>
2121
</properties>
2222

2323
<dependencies>
@@ -57,39 +57,33 @@
5757
<groupId>org.postgresql</groupId>
5858
<artifactId>postgresql</artifactId>
5959
</dependency>
60-
<dependency>
61-
<groupId>io.hypersistence</groupId>
62-
<artifactId>hypersistence-utils-hibernate-63</artifactId>
63-
<version>3.7.0</version>
64-
</dependency>
6560
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
6661
<dependency>
6762
<groupId>com.fasterxml.jackson.core</groupId>
6863
<artifactId>jackson-databind</artifactId>
6964
</dependency>
70-
7165
<dependency>
72-
<groupId>com.github.javafaker</groupId>
73-
<artifactId>javafaker</artifactId>
74-
<version>1.0.2</version>
66+
<groupId>net.datafaker</groupId>
67+
<artifactId>datafaker</artifactId>
68+
<version>2.7.0</version>
7569
<scope>test</scope>
7670
</dependency>
7771
<dependency>
7872
<groupId>org.testcontainers</groupId>
7973
<artifactId>testcontainers</artifactId>
80-
<version>1.18.0</version>
74+
<version>2.0.5</version>
8175
<scope>test</scope>
8276
</dependency>
8377
<dependency>
8478
<groupId>org.testcontainers</groupId>
85-
<artifactId>junit-jupiter</artifactId>
86-
<version>1.18.0</version>
79+
<artifactId>testcontainers-junit-jupiter</artifactId>
80+
<version>2.0.5</version>
8781
<scope>test</scope>
8882
</dependency>
8983
<dependency>
9084
<groupId>org.testcontainers</groupId>
91-
<artifactId>postgresql</artifactId>
92-
<version>1.18.0</version>
85+
<artifactId>testcontainers-postgresql</artifactId>
86+
<version>2.0.5</version>
9387
<scope>test</scope>
9488
</dependency>
9589
</dependencies>
@@ -99,7 +93,7 @@
9993
<plugin>
10094
<groupId>org.apache.maven.plugins</groupId>
10195
<artifactId>maven-compiler-plugin</artifactId>
102-
<version>3.11.0</version>
96+
<version>3.15.0</version>
10397
<configuration>
10498
<source>${java.version}</source>
10599
<target>${java.version}</target>
@@ -129,7 +123,7 @@
129123
<plugin>
130124
<groupId>org.apache.maven.plugins</groupId>
131125
<artifactId>maven-checkstyle-plugin</artifactId>
132-
<version>3.2.1</version>
126+
<version>3.6.0</version>
133127
<configuration>
134128
<configLocation>checkstyle.xml</configLocation>
135129
<suppressionsFileExpression>
@@ -154,7 +148,7 @@
154148
<dependency>
155149
<groupId>com.puppycrawl.tools</groupId>
156150
<artifactId>checkstyle</artifactId>
157-
<version>10.3.4</version>
151+
<version>13.5.0</version>
158152
</dependency>
159153
</dependencies>
160154
</plugin>

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A reusable mailer service to send emails.
44

55
## Setup
66

7-
Add the mailer service to the classpath by adding the following maven dependency. Versions haven be found [here](../../packages)
7+
Add the mailer service to the classpath by adding the following maven dependency. Versions can be found [here](../../packages)
88

99
```xml
1010

src/test/java/it/aboutbits/springboot/emailservice/lib/application/ManageEmailTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
import org.junit.jupiter.api.Test;
1111
import org.springframework.beans.factory.annotation.Autowired;
1212
import org.springframework.boot.test.context.SpringBootTest;
13-
import org.springframework.boot.test.mock.mockito.MockBean;
14-
import org.springframework.boot.test.mock.mockito.SpyBean;
1513
import org.springframework.mail.MailSendException;
1614
import org.springframework.mail.javamail.JavaMailSender;
15+
import org.springframework.test.context.bean.override.mockito.MockitoBean;
16+
import org.springframework.test.context.bean.override.mockito.MockitoSpyBean;
1717

1818
import java.io.ByteArrayInputStream;
1919
import java.time.OffsetDateTime;
@@ -31,10 +31,10 @@
3131
@SpringBootTest
3232
@WithPostgres
3333
class ManageEmailTest {
34-
@SpyBean
34+
@MockitoSpyBean
3535
JavaMailSender javaMailSender;
3636

37-
@MockBean
37+
@MockitoBean
3838
AttachmentDataSource attachmentDataSource;
3939

4040
@Autowired

src/test/java/it/aboutbits/springboot/emailservice/lib/application/QueryEmailTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
import org.junit.jupiter.api.Test;
99
import org.springframework.beans.factory.annotation.Autowired;
1010
import org.springframework.boot.test.context.SpringBootTest;
11-
import org.springframework.boot.test.mock.mockito.MockBean;
1211
import org.springframework.data.domain.PageRequest;
1312
import org.springframework.mail.javamail.JavaMailSender;
13+
import org.springframework.test.context.bean.override.mockito.MockitoBean;
1414

1515
import java.util.Set;
1616

@@ -20,7 +20,7 @@
2020
@SpringBootTest
2121
@WithPostgres
2222
class QueryEmailTest {
23-
@MockBean
23+
@MockitoBean
2424
JavaMailSender javaMailSender;
2525

2626
@Autowired

src/test/java/it/aboutbits/springboot/emailservice/support/database/PostgresTestcontainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private void cleanTablesData(List<TableData> tablesToClean, Connection connectio
101101
}
102102

103103
@Data
104-
private static class TableData {
104+
private static final class TableData {
105105
private final String schema;
106106
private final String name;
107107

src/test/java/it/aboutbits/springboot/emailservice/support/database/factory/EmailFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package it.aboutbits.springboot.emailservice.support.database.factory;
22

3-
import com.github.javafaker.Faker;
43
import it.aboutbits.springboot.emailservice.lib.EmailState;
54
import it.aboutbits.springboot.emailservice.lib.model.Email;
5+
import net.datafaker.Faker;
66

77
import java.time.OffsetDateTime;
88
import java.util.List;

0 commit comments

Comments
 (0)