Skip to content

Commit

Permalink
Enable eclipselink for metastore (#47)
Browse files Browse the repository at this point in the history
This PR will enable eclipselink by default with H2 as backend metastore. This is based off changes from #41.
  • Loading branch information
MonkeyCanCode authored Aug 2, 2024
1 parent 80732fe commit 31c8616
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ subprojects {
apply plugin: "java-library"
}

project(":polaris-eclipselink") {
apply plugin: "java-library"
}

dependencies {
implementation(platform(libs.jackson.bom))
implementation("com.fasterxml.jackson.core:jackson-annotations")
Expand Down
3 changes: 2 additions & 1 deletion extension/persistence/eclipselink/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@

dependencies {
implementation(project(":polaris-core"))
implementation(project(":polaris-service"))
runtimeOnly(project(":polaris-service"))
implementation(libs.eclipselink)
implementation(platform(libs.dropwizard.bom))
implementation("io.dropwizard:dropwizard-jackson")
implementation(libs.h2) // Different dependencies will be needed for different backend databases

testImplementation(libs.h2)
testImplementation(testFixtures(project(":polaris-core")))
Expand Down
2 changes: 2 additions & 0 deletions polaris-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ defaultRealms:

metaStoreManager:
type: in-memory
# type: eclipse-link # uncomment to use eclipse-link as metastore
# persistence-unit: polaris-dev

# TODO - avoid duplicating token broker config
oauth2:
Expand Down
3 changes: 2 additions & 1 deletion polaris-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ plugins {

dependencies {
implementation(project(":polaris-core"))

implementation(project(":polaris-eclipselink"))

implementation(platform(libs.iceberg.bom))
implementation("org.apache.iceberg:iceberg-api")
implementation("org.apache.iceberg:iceberg-core")
Expand Down

0 comments on commit 31c8616

Please sign in to comment.