The repository contains event functionality shared among different applications, i.e. the DCSA Event API functionality. It is packaged as a jar, and uploaded to GitHub packages, to be downloaded via Maven
We use Google Java Style, when using IntelliJ it is recommended to download and activate the google-java-format plugin.
mvn clean install -nsu
If you need any of the Services, Controllers or Repositories required by
this module, then you may have to explicitly define basePackages
in the
@ComponentScan
and @EnableR2dbcRepositories
annotation. For DCSA implementations, the
following definition should work:
@ComponentScan(basePackages = "org.dcsa")
@EnableR2dbcRepositories(basePackages = {"org.dcsa"}, repositoryBaseClass = ExtendedRepositoryImpl.class)
If you need more control over it, then all the repositories from the
DCSA Event Core are isolated in org.dcsa.core.events.repositories
.
We have development branches for each project, branching from master.
ex. dev-bkg, dev-ovs, etc
- The branches will be merged with master at the close of a sprint, with a bumped up event core version.
- The development branch will be rebased with master at the start of a sprint.
This allows us to limit the number of bumps in version during development.
Each project has a dev CI which build against the respective development branch in DCSA-Event-Core.
While working with development branches we recommend importing DCSA-Core and DCSA-Event-Core as modules into
individual projects (ex. DCSA-BKG, DCSA-OVS, etc.) over using the maven import to avoid issues.
If on master the maven import works just fine.
A typical flow would look like (using DCSA-BKG as an example) :
- Changes required in DCSA-Event-Core are pushed to dev-bkg branch. This triggers a snapshot build.
- We then push the changes in the respective feature branches within DCSA-BKG, this triggers a CI to use the
the snapshot created by dev-bkg to build DCSA-BKG. Verifying everything is in sync. - At the end of a sprint, we bump the DCSA-Event-Core version and merge with master.
- Tag DCSA-Event-Core.
- Rebase dev-bkg with the latest master if any other changes are present.
- Continue development.