Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,17 @@
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
</dependency>
<!-- Jackson JAXB annotations module for ObjectMapper.findAndRegisterModules() -->
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-jaxb-annotations</artifactId>
</dependency>
<!-- JAXB API needed by jackson-module-jaxb-annotations on modern JDKs -->
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>4.0.0</version>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
Expand Down Expand Up @@ -189,6 +200,70 @@
<artifactId>opentelemetry-sdk-testing</artifactId>
<scope>test</scope>
</dependency>

<!-- Database Session Service Dependencies -->

<!-- Hibernate ORM - JPA implementation for object-relational mapping -->
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-core</artifactId>
</dependency>

<!-- Jakarta Persistence API - Standard JPA annotations and interfaces -->
<dependency>
<groupId>jakarta.persistence</groupId>
<artifactId>jakarta.persistence-api</artifactId>
</dependency>

<!-- HikariCP - High-performance JDBC connection pool -->
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
</dependency>

<!-- Hibernate HikariCP Integration - Enables HikariCP as Hibernate's connection provider -->
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-hikaricp</artifactId>
</dependency>

<!-- Database Drivers -->

<!-- H2 Database - In-memory database for testing -->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>test</scope>
</dependency>

<!-- PostgreSQL Driver - JDBC driver for PostgreSQL databases (optional for production use) -->
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<optional>true</optional>
</dependency>

<!-- MySQL Driver - JDBC driver for MySQL databases (optional for production use) -->
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<optional>true</optional>
</dependency>

<!-- Database Migration -->

<!-- Flyway Core - Database schema migration and versioning tool -->
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
</dependency>

<!-- Flyway PostgreSQL Support - PostgreSQL-specific migration support -->
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-database-postgresql</artifactId>
<scope>runtime</scope>
</dependency>
Comment on lines +253 to +266
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For full support of MySQL, especially in multi-pod environments where migration locking is crucial, it's recommended to include the flyway-mysql dependency. This is analogous to how flyway-database-postgresql is included for PostgreSQL-specific features. Please consider adding it here and to the parent pom.xml's dependencyManagement section.

</dependencies>
<build>
<resources>
Expand Down
Loading