eventuate-examples / eventuate-micronaut-examples-customers-and-orders

Micronaut version of Eventuate event sourcing-based Customers and Orders
Other
11 stars 5 forks source link

Avoiding Embedded DataSource vs. Hikari DataSource Conflicts #8

Open cer opened 4 years ago

cer commented 4 years ago

https://github.com/eventuate-examples/eventuate-micronaut-examples-customers-and-orders/blob/810dd7bffeef0a85b2f8c0fa68979e3fe4020b9c/customers-service/build.gradle#L49

src/main uses Hikari DataSource but some tests want to use Embedded DataSource.

Two questions:

@dartartem

dartartem commented 4 years ago

1 - service, https://github.com/eventuate-examples/eventuate-micronaut-examples-customers-and-orders/blob/master/customers-service/build.gradle#L24

2 - because there were change in eventuate local https://github.com/eventuate-local/eventuate-local/pull/149/files , you said make it similar to spring. Please see thread: [updating-libraries] report 06/17/2020

3 - there is Requires annotation: https://docs.micronaut.io/latest/api/io/micronaut/context/annotation/Requires.html

cer commented 4 years ago

What about annotating the test datasource with https://docs.micronaut.io/latest/api/io/micronaut/context/annotation/Replaces.html?