forked from cer/event-sourcing-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cer#44: Upgraded eventuate dependencies. Upgraded Spring boot. Upgrad…
…ed gradle. Updated according the style guide.
- Loading branch information
Showing
272 changed files
with
998 additions
and
3,851 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apply plugin: 'java' | ||
|
||
dependencies { | ||
compile project(":common") | ||
|
||
compile "io.eventuate.local.java:eventuate-client-java-spring:$eventuateLocalVersion" | ||
|
||
testCompile "junit:junit:4.11" | ||
} |
2 changes: 1 addition & 1 deletion
2
.../common/accounts/AccountChangedEvent.java → ...ts/domain/events/AccountChangedEvent.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
2 changes: 1 addition & 1 deletion
2
...common/accounts/AccountCreditedEvent.java → ...s/domain/events/AccountCreditedEvent.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
2 changes: 1 addition & 1 deletion
2
...bitFailedDueToInsufficientFundsEvent.java → ...bitFailedDueToInsufficientFundsEvent.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
2 changes: 1 addition & 1 deletion
2
.../common/accounts/AccountDebitedEvent.java → ...ts/domain/events/AccountDebitedEvent.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
4 changes: 4 additions & 0 deletions
4
...ichardson/eventstore/javaexamples/banking/accounts/domain/events/AccountDeletedEvent.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,4 @@ | ||
package net.chrisrichardson.eventstore.javaexamples.banking.accounts.domain.events; | ||
|
||
public class AccountDeletedEvent extends AccountEvent { | ||
} |
4 changes: 2 additions & 2 deletions
4
...backend/common/accounts/AccountEvent.java → .../accounts/domain/events/AccountEvent.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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package net.chrisrichardson.eventstore.javaexamples.banking.backend.common.accounts; | ||
package net.chrisrichardson.eventstore.javaexamples.banking.accounts.domain.events; | ||
|
||
import io.eventuate.Event; | ||
import io.eventuate.EventEntity; | ||
|
||
@EventEntity(entity="net.chrisrichardson.eventstore.javaexamples.banking.accountsservice.backend.Account") | ||
@EventEntity(entity="net.chrisrichardson.eventstore.javaexamples.banking.accountsservice.domain.Account") | ||
public abstract class AccountEvent implements Event{ | ||
} |
2 changes: 1 addition & 1 deletion
2
...d/common/accounts/AccountOpenedEvent.java → ...nts/domain/events/AccountOpenedEvent.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apply plugin: 'java' | ||
|
||
dependencies { | ||
compile project(":common") | ||
} |
2 changes: 1 addition & 1 deletion
2
...common/accounts/CreateAccountRequest.java → ...accounts/webapi/CreateAccountRequest.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
2 changes: 1 addition & 1 deletion
2
...ommon/accounts/CreateAccountResponse.java → ...ccounts/webapi/CreateAccountResponse.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
2 changes: 1 addition & 1 deletion
2
...ommon/accounts/DeleteAccountResponse.java → ...ccounts/webapi/DeleteAccountResponse.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
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
FROM java:openjdk-8u91-jdk | ||
CMD java ${JAVA_OPTS} -jar accounts-service.jar | ||
EXPOSE 8080 | ||
COPY build/libs/accounts-service.jar . | ||
ARG baseImageVersion | ||
FROM eventuateio/eventuate-examples-docker-images-spring-example-base-image:$baseImageVersion | ||
COPY build/libs/accounts-service.jar service.jar |
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 |
---|---|---|
@@ -1,21 +1,23 @@ | ||
apply plugin: VerifyEventStoreEnvironmentPlugin | ||
apply plugin: EventuateDependencyPlugin | ||
|
||
apply plugin: 'spring-boot' | ||
apply plugin: 'org.springframework.boot' | ||
|
||
dependencies { | ||
compile project(":common-backend") | ||
compile project(":common-swagger") | ||
|
||
compile "org.springframework.boot:spring-boot-starter-web" | ||
compile "org.springframework.boot:spring-boot-starter-actuator" | ||
compile project(":accounts-service-api-messaging") | ||
compile project(":accounts-service-api-web") | ||
|
||
compile project(":transactions-service-api-messaging") | ||
|
||
compile "io.eventuate.local.java:eventuate-local-java-spring-jdbc:$eventuateLocalVersion" | ||
|
||
compile "org.springframework.boot:spring-boot-starter-web:$springBootVersion" | ||
compile "org.springframework.boot:spring-boot-starter-hateoas:$springBootVersion" | ||
compile "org.springframework.boot:spring-boot-starter-actuator:$springBootVersion" | ||
compile "org.springframework.boot:spring-boot-starter-jdbc:$springBootVersion" | ||
|
||
testCompile project(":common-auth") | ||
testCompile project(":testutil") | ||
testCompile "junit:junit:4.11" | ||
testCompile "org.springframework.boot:spring-boot-starter-test" | ||
testCompile "io.eventuate.client.java:eventuate-client-java-jdbc:$eventuateClientVersion" | ||
} | ||
|
||
test { | ||
ignoreFailures System.getenv("EVENTUATE_API_KEY_ID") == null | ||
testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVersion" | ||
testCompile "io.eventuate.local.java:eventuate-client-java-spring-jdbc:$eventuateLocalVersion" | ||
} |
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
5 changes: 2 additions & 3 deletions
5
.../chrisrichardson/eventstore/javaexamples/banking/accountsservice/AccountsServiceMain.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
8 changes: 6 additions & 2 deletions
8
...king/accountsservice/backend/Account.java → ...nking/accountsservice/domain/Account.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
4 changes: 2 additions & 2 deletions
4
...countsservice/backend/AccountCommand.java → ...ccountsservice/domain/AccountCommand.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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package net.chrisrichardson.eventstore.javaexamples.banking.accountsservice.backend; | ||
package net.chrisrichardson.eventstore.javaexamples.banking.accountsservice.domain; | ||
|
||
|
||
import io.eventuate.Command; | ||
|
||
interface AccountCommand extends Command { | ||
public interface AccountCommand extends Command { | ||
} |
2 changes: 1 addition & 1 deletion
2
...service/backend/CreditAccountCommand.java → ...sservice/domain/CreditAccountCommand.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
2 changes: 1 addition & 1 deletion
2
...sservice/backend/DebitAccountCommand.java → ...tsservice/domain/DebitAccountCommand.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
2 changes: 1 addition & 1 deletion
2
...service/backend/DeleteAccountCommand.java → ...sservice/domain/DeleteAccountCommand.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package net.chrisrichardson.eventstore.javaexamples.banking.accountsservice.backend; | ||
package net.chrisrichardson.eventstore.javaexamples.banking.accountsservice.domain; | ||
|
||
public class DeleteAccountCommand implements AccountCommand { | ||
} |
2 changes: 1 addition & 1 deletion
2
...tsservice/backend/OpenAccountCommand.java → ...ntsservice/domain/OpenAccountCommand.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
Oops, something went wrong.