Skip to content

Commit 5de1c57

Browse files
committed
Upgraded to spring-boot 4
1 parent ab907b9 commit 5de1c57

File tree

10 files changed

+106
-281
lines changed

10 files changed

+106
-281
lines changed

.bettercodehub.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
.DS_Store
88
.factorypath
99
.java-version
10+
pom.xml.versionsBackup

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
[![Build Status](https://github.com/42BV/beanmapper-spring-boot-starter/workflows/Java%20CI%20with%20Maven/badge.svg)](https://github.com/42BV/beanmapper-spring-boot-starter/actions?query=workflow%3A%22Java+CI+with+Maven%22)
22
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/5af36404b8634c1ab108257cd8ad85c2)](https://www.codacy.com/gh/42BV/beanmapper-spring-boot-starter/dashboard?utm_source=github.com&utm_medium=referral&utm_content=42BV/beanmapper-spring-boot-starter&utm_campaign=Badge_Grade)
3-
[![BCH compliance](https://bettercodehub.com/edge/badge/42BV/beanmapper-spring-boot-starter?branch=master)](https://bettercodehub.com/)
43
[![codecov](https://codecov.io/gh/42BV/beanmapper-spring-boot-starter/branch/master/graph/badge.svg)](https://codecov.io/gh/42BV/beanmapper-spring-boot-starter)
5-
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.beanmapper/beanmapper-spring-boot-starter/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.beanmapper/beanmapper-spring-boot-starter)
4+
[![Maven Central](https://img.shields.io/maven-central/v/io.beanmapper/beanmapper-spring-boot-starter.svg?color=green)](https://central.sonatype.com/artifact/io.beanmapper/beanmapper-spring-boot-starter)
65
[![Javadocs](https://www.javadoc.io/badge/io.beanmapper/beanmapper-spring-boot-starter.svg)](https://www.javadoc.io/doc/io.beanmapper/beanmapper-spring-boot-starter)
76
[![Apache 2](http://img.shields.io/badge/license-Apache%202-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)
87

@@ -27,7 +26,7 @@ Add this maven dependency to your project and you can start wiring the `BeanMapp
2726
<dependency>
2827
<groupId>io.beanmapper</groupId>
2928
<artifactId>beanmapper-spring-boot-starter</artifactId>
30-
<version>4.1.1</version>
29+
<version>7.0.0</version>
3130
</dependency>
3231
```
3332

pom.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@
5353
<properties>
5454
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5555
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
56-
<maven.compiler.source>21</maven.compiler.source>
57-
<maven.compiler.target>21</maven.compiler.target>
56+
<maven.compiler.release>21</maven.compiler.release>
5857

59-
<spring.boot.version>3.5.4</spring.boot.version>
60-
<beanmapper.spring.version>6.0.1</beanmapper.spring.version>
61-
<dependency-check-maven.version>12.1.3</dependency-check-maven.version>
62-
<jacoco-maven-plugin.version>0.8.13</jacoco-maven-plugin.version>
58+
<spring.boot.version>4.0.0</spring.boot.version>
59+
<beanmapper.spring.version>7.0.0</beanmapper.spring.version>
60+
61+
<dependency-check-maven.version>12.1.9</dependency-check-maven.version>
62+
<jacoco-maven-plugin.version>0.8.14</jacoco-maven-plugin.version>
6363
<central-publishing-maven-plugin.version>0.8.0</central-publishing-maven-plugin.version>
6464
<maven-gpg-plugin.version>3.2.8</maven-gpg-plugin.version>
6565
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
@@ -83,7 +83,7 @@
8383
</dependency>
8484
<dependency>
8585
<groupId>org.springframework.boot</groupId>
86-
<artifactId>spring-boot-starter-web</artifactId>
86+
<artifactId>spring-boot-starter-webmvc</artifactId>
8787
<optional>true</optional>
8888
</dependency>
8989
<dependency>

pom.xml.versionsBackup

Lines changed: 0 additions & 231 deletions
This file was deleted.

sonatype-release-doc.md

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
# Release to Maven Central
22

3-
1. Create a [ticket with Sonatype](http://central.sonatype.org/pages/ossrh-guide.html)
4-
(This has to be done by our maintenance department once per project).
5-
6-
2. Install a [gpg client](http://central.sonatype.org/pages/apache-maven.html#other-prerequisites) to sign the deployment artifacts
7-
(This step has obviously to be done once per client).
8-
9-
3. Prepare the release:
10-
`$ mvn release:prepare`
11-
12-
4. Perform the release:
13-
`$ mvn release:perform`
14-
15-
5. Verify the release on Maven central:
16-
- Navigate to [oss.sonatype.org](https://oss.sonatype.org/)
17-
- Log in
18-
- Go to 'Staging Repositories'
19-
- Search on '42'
20-
- Select the artifact
21-
- Press 'release'
3+
1. Run the github action "Publish package to the Maven Central Repository"
4+
2. Wait for the release to complete
5+
3. Go to https://central.sonatype.com/publishing and publish the artifact
6+
(sonatype credentials in tpm)

src/main/java/io/beanmapper/autoconfigure/ApplicationScanner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import org.slf4j.Logger;
1818
import org.slf4j.LoggerFactory;
1919
import org.springframework.boot.autoconfigure.SpringBootApplication;
20-
import org.springframework.boot.autoconfigure.domain.EntityScanner;
20+
import org.springframework.boot.persistence.autoconfigure.EntityScanner;
2121
import org.springframework.context.ApplicationContext;
2222
import org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider;
2323
import org.springframework.core.type.filter.TypeFilter;

0 commit comments

Comments
 (0)