Skip to content

Commit 050414b

Browse files
luisgomez29luisgomez29
andauthored
feat!: Upgrade to Spring Boot 4 and Jackson 3 (#157)
* ci: update GitHub Actions to use latest versions * build: Upgrade to Sping Boot 4 * feat(cloudevents): Add cloud events json jackson module * build: Upgrade to Jackson 3 * docs: update for Spring Boot 4 and Jackson 3 migration --------- Co-authored-by: luisgomez29 <luisgaleano002@gamil.com>
1 parent a13e30c commit 050414b

File tree

94 files changed

+2731
-3268
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+2731
-3268
lines changed

.github/workflows/docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
url: ${{ steps.deployment.outputs.page_url }}
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@v6
2323
- name: Setup Node.js
24-
uses: actions/setup-node@v4
24+
uses: actions/setup-node@v6
2525
with:
2626
node-version-file: 'docs/.nvmrc'
2727
- name: Install dependencies
@@ -31,7 +31,7 @@ jobs:
3131
run: npm run build
3232
working-directory: docs
3333
- name: Upload artifact
34-
uses: actions/upload-pages-artifact@v3
34+
uses: actions/upload-pages-artifact@v4
3535
with:
3636
path: 'docs/build/'
3737
- name: Deploy to GitHub Pages

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,30 @@ jobs:
1515
pull-requests: write
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v6
1919
- name: Verify Conventional Commits
2020
uses: amannn/action-semantic-pull-request@v5
2121
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
2222
env:
2323
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2424
- name: Set up NodeJS
2525
if: github.ref == 'refs/heads/master'
26-
uses: actions/setup-node@v4
26+
uses: actions/setup-node@v6
2727
with:
2828
node-version-file: '.nvmrc'
2929
- name: Set up Semantic Release
3030
if: github.ref == 'refs/heads/master'
31-
run: npm -g install @semantic-release/git semantic-release@23.0.0
31+
run: npm -g install @semantic-release/git semantic-release@25.0.2
3232
- name: Semantic Release
3333
if: github.ref == 'refs/heads/master'
34-
run: npx semantic-release@23.0.0
34+
run: npx semantic-release@25.0.2
3535
env:
3636
GITHUB_TOKEN: ${{ secrets.PA_TOKEN }}
37-
- name: Set up JDK 17
38-
uses: actions/setup-java@v3
37+
- name: Set up JDK 25
38+
uses: actions/setup-java@v5
3939
with:
4040
distribution: temurin
41-
java-version: 17
41+
java-version: 25
4242
- name: Execute build test jacocoTestReport and sonar analysis
4343
if: endsWith(github.REF, '/master') == true || github.event.pull_request.head.repo.fork == false
4444
env:

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
release:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v4
9+
- uses: actions/checkout@v6
1010
- name: Set env
1111
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
1212
- name: Upgrade Gradle.properties
@@ -20,11 +20,11 @@ jobs:
2020
issues: true
2121
issuesWoLabels: true
2222
stripGeneratorNotice: true
23-
- name: Set up JDK 17
24-
uses: actions/setup-java@v3
23+
- name: Set up JDK 25
24+
uses: actions/setup-java@v5
2525
with:
2626
distribution: temurin
27-
java-version: 17
27+
java-version: 25
2828
- name: Build with Gradle
2929
run: ./gradlew build --refresh-dependencies --no-daemon --continue -Denv.ci=true
3030
- name: Prepare gpg key

.github/workflows/updater.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ jobs:
77
build:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v4
11-
- name: Set up JDK 17
12-
uses: actions/setup-java@v4
10+
- uses: actions/checkout@v6
11+
- name: Set up JDK 25
12+
uses: actions/setup-java@v5
1313
with:
1414
distribution: 'temurin'
15-
java-version: 17
15+
java-version: 25
1616
- name: Check for updates
1717
run: ./gradlew internalTask --action UPDATE_DEPENDENCIES
1818
- name: Check for changes

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20.11.0
1+
v24.11.1

acceptance/async-tests/src/test/java/org/reactivecommons/test/SimpleEventNotificationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class SimpleEventNotificationTest {
3434
private final Long data = ThreadLocalRandom.current().nextLong();
3535

3636
@Test
37-
void shouldReceiveEvent() throws InterruptedException {
37+
void shouldReceiveEvent() {
3838
DomainEvent<?> event = new DomainEvent<>(EVENT_NAME, eventId, data);
3939
Sinks.Many<DomainEvent<Long>> listener = Sinks.many().unicast().onBackpressureBuffer();
4040
from(eventBus.emit(event)).subscribe();

async/async-commons-api/async-commons-api.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ dependencies {
77
api project(':domain-events-api')
88
compileOnly 'io.projectreactor:reactor-core'
99
testImplementation 'io.projectreactor:reactor-test'
10-
implementation 'io.cloudevents:cloudevents-json-jackson:4.0.1'
1110
}

async/async-commons/async-commons.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ ext {
66
dependencies {
77
api project(':async-commons-api')
88
api project(':domain-events-api')
9+
api project(':cloudevents-json-jackson')
910

1011
compileOnly 'io.projectreactor:reactor-core'
11-
api 'com.fasterxml.jackson.core:jackson-databind'
12-
api 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
13-
implementation 'commons-io:commons-io:2.20.0'
14-
implementation 'io.cloudevents:cloudevents-json-jackson:4.0.1'
12+
api 'tools.jackson.core:jackson-databind:3.0.3'
13+
implementation 'commons-io:commons-io:2.21.0'
14+
implementation 'io.cloudevents:cloudevents-core:4.0.1'
1515

1616
testImplementation 'io.projectreactor:reactor-test'
1717
}

async/async-commons/src/main/java/org/reactivecommons/async/commons/DLQDiscardNotifier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package org.reactivecommons.async.commons;
22

3-
import com.fasterxml.jackson.databind.JsonNode;
43
import io.cloudevents.CloudEvent;
54
import io.cloudevents.core.builder.CloudEventBuilder;
65
import lombok.Data;
@@ -12,6 +11,7 @@
1211
import org.reactivecommons.async.commons.converters.MessageConverter;
1312
import org.reactivecommons.async.commons.exceptions.MessageConversionException;
1413
import reactor.core.publisher.Mono;
14+
import tools.jackson.databind.JsonNode;
1515

1616
import java.util.logging.Level;
1717

async/async-commons/src/main/java/org/reactivecommons/async/commons/HandlerResolver.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ public void addEventListener(RegisteredEventListener<?, ?> listener) {
8888

8989
public void addQueryHandler(RegisteredQueryHandler<?, ?> handler) {
9090
if (handler.path().contains("*") || handler.path().contains("#")) {
91-
throw new RuntimeException("avoid * or # in dynamic handlers, make sure you have no conflicts with cached" +
92-
" patterns");
91+
throw new RuntimeException(
92+
"avoid * or # in dynamic handlers, make sure you have no conflicts with cached patterns"
93+
);
9394
}
9495
queryHandlers.put(handler.path(), handler);
9596
}

0 commit comments

Comments
 (0)