-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: java 17 for spring samples and maven archetypes (#1156)
* fix: testing java 17 for samples * fix: java 17 for maven archetypes * fix: java 17 for kalix action example * fix: java 17 for event sourced counter sample * fix: java 17 for views sample * Update samples/spring-eventsourced-customer-registry/pom.xml Co-authored-by: Renato Cavalcanti <[email protected]> * fixing maven poms * fixing maven poms * reverting changes * cleanups and renames * testing build with java 17 * reverting java 17 from grpc archetypes * missing jackson annotations Co-authored-by: Renato Cavalcanti <[email protected]>
- Loading branch information
Showing
33 changed files
with
129 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
samples/spring-eventsourced-counter/src/main/java/com/example/CounterEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.example; | ||
|
||
import com.fasterxml.jackson.annotation.JsonSubTypes; | ||
import com.fasterxml.jackson.annotation.JsonTypeInfo; | ||
|
||
import static com.example.CounterEvent.*; | ||
|
||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type") | ||
@JsonSubTypes( | ||
{ | ||
@JsonSubTypes.Type(value = ValueIncreased.class, name = "value-increased"), | ||
@JsonSubTypes.Type(value = ValueMultiplied.class, name = "value-multiplied"), | ||
}) | ||
public sealed interface CounterEvent { | ||
|
||
record ValueIncreased(int value) implements CounterEvent { | ||
} | ||
|
||
record ValueMultiplied(int value) implements CounterEvent { | ||
} | ||
} |
30 changes: 0 additions & 30 deletions
30
samples/spring-eventsourced-counter/src/main/java/com/example/ValueIncreased.java
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
samples/spring-eventsourced-counter/src/main/java/com/example/ValueMultiplied.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.