diff --git a/servers/pom.xml b/servers/pom.xml index 6037a33686a..8c2f81d52ab 100644 --- a/servers/pom.xml +++ b/servers/pom.xml @@ -34,5 +34,6 @@ services quarkus-server lambda + server diff --git a/servers/quarkus-server/pom.xml b/servers/quarkus-server/pom.xml index 59908821b21..378d922e848 100644 --- a/servers/quarkus-server/pom.xml +++ b/servers/quarkus-server/pom.xml @@ -39,6 +39,11 @@ nessie-services ${project.version} + + org.projectnessie + nessie-server + ${project.version} + org.projectnessie nessie-versioned-jgit @@ -199,25 +204,6 @@ - - org.xolstice.maven.plugins - protobuf-maven-plugin - 0.6.1 - - ${basedir}/src/main/proto - com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier} - - - - - compile - - - ${project.build.directory}/generated-sources/protobuf - - - - diff --git a/servers/quarkus-server/src/main/java/com/dremio/nessie/server/providers/VersionStoreFactory.java b/servers/quarkus-server/src/main/java/com/dremio/nessie/server/providers/VersionStoreFactory.java index 368c1844462..bbb0edd3f48 100644 --- a/servers/quarkus-server/src/main/java/com/dremio/nessie/server/providers/VersionStoreFactory.java +++ b/servers/quarkus-server/src/main/java/com/dremio/nessie/server/providers/VersionStoreFactory.java @@ -37,6 +37,7 @@ import com.dremio.nessie.model.CommitMeta; import com.dremio.nessie.model.Contents; +import com.dremio.nessie.server.TableCommitMetaStoreWorker; import com.dremio.nessie.server.config.ApplicationConfig; import com.dremio.nessie.server.config.ApplicationConfig.VersionStoreDynamoConfig; import com.dremio.nessie.server.config.converters.VersionStoreType; diff --git a/servers/server/pom.xml b/servers/server/pom.xml new file mode 100644 index 00000000000..bc77928ba62 --- /dev/null +++ b/servers/server/pom.xml @@ -0,0 +1,80 @@ + + + + 4.0.0 + + + org.projectnessie + nessie-server-parent + 0.3.1-SNAPSHOT + + + nessie-server + + Nessie - Server + + + + org.projectnessie + nessie-model + ${project.version} + + + org.projectnessie + nessie-versioned-spi + ${project.version} + + + com.google.protobuf + protobuf-java + + + com.fasterxml.jackson.core + jackson-databind + + + jakarta.enterprise + jakarta.enterprise.cdi-api + + + + + + + org.xolstice.maven.plugins + protobuf-maven-plugin + 0.6.1 + + ${basedir}/src/main/proto + com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier} + + + + + compile + + + ${project.build.directory}/generated-sources/protobuf + + + + + + + diff --git a/servers/quarkus-server/src/main/java/com/dremio/nessie/server/providers/TableCommitMetaStoreWorker.java b/servers/server/src/main/java/com/dremio/nessie/server/TableCommitMetaStoreWorker.java similarity index 94% rename from servers/quarkus-server/src/main/java/com/dremio/nessie/server/providers/TableCommitMetaStoreWorker.java rename to servers/server/src/main/java/com/dremio/nessie/server/TableCommitMetaStoreWorker.java index 280e520e475..e8b5a680889 100644 --- a/servers/quarkus-server/src/main/java/com/dremio/nessie/server/providers/TableCommitMetaStoreWorker.java +++ b/servers/server/src/main/java/com/dremio/nessie/server/TableCommitMetaStoreWorker.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.dremio.nessie.server.providers; +package com.dremio.nessie.server; import java.io.IOException; import java.util.stream.Collectors; @@ -21,12 +21,6 @@ import javax.inject.Singleton; -import com.dremio.nessie.jgit.ObjectTypes.PContents; -import com.dremio.nessie.jgit.ObjectTypes.PDeltaLakeTable; -import com.dremio.nessie.jgit.ObjectTypes.PHiveDatabase; -import com.dremio.nessie.jgit.ObjectTypes.PHiveTable; -import com.dremio.nessie.jgit.ObjectTypes.PIcebergTable; -import com.dremio.nessie.jgit.ObjectTypes.PSqlView; import com.dremio.nessie.model.CommitMeta; import com.dremio.nessie.model.Contents; import com.dremio.nessie.model.DeltaLakeTable; @@ -42,6 +36,12 @@ import com.dremio.nessie.model.ImmutableSqlView; import com.dremio.nessie.model.SqlView; import com.dremio.nessie.model.SqlView.Dialect; +import com.dremio.nessie.server.model.ObjectTypes.PContents; +import com.dremio.nessie.server.model.ObjectTypes.PDeltaLakeTable; +import com.dremio.nessie.server.model.ObjectTypes.PHiveDatabase; +import com.dremio.nessie.server.model.ObjectTypes.PHiveTable; +import com.dremio.nessie.server.model.ObjectTypes.PIcebergTable; +import com.dremio.nessie.server.model.ObjectTypes.PSqlView; import com.dremio.nessie.versioned.AssetKey; import com.dremio.nessie.versioned.AssetKey.NoOpAssetKey; import com.dremio.nessie.versioned.Serializer; diff --git a/servers/quarkus-server/src/main/proto/table.proto b/servers/server/src/main/proto/table.proto similarity index 93% rename from servers/quarkus-server/src/main/proto/table.proto rename to servers/server/src/main/proto/table.proto index a870cbfda70..b1431ea53d6 100644 --- a/servers/quarkus-server/src/main/proto/table.proto +++ b/servers/server/src/main/proto/table.proto @@ -14,9 +14,9 @@ * limitations under the License. */ syntax = "proto3"; -package com.dremio.plugin.partsyn; +package com.dremio.nessie.model; -option java_package = "com.dremio.nessie.jgit"; +option java_package = "com.dremio.nessie.server.model"; option java_outer_classname = "ObjectTypes"; option java_generate_equals_and_hash = true; diff --git a/servers/services/src/main/java/com/dremio/nessie/services/rest/TreeResource.java b/servers/services/src/main/java/com/dremio/nessie/services/rest/TreeResource.java index 496eb213ee1..368d28dfb7f 100644 --- a/servers/services/src/main/java/com/dremio/nessie/services/rest/TreeResource.java +++ b/servers/services/src/main/java/com/dremio/nessie/services/rest/TreeResource.java @@ -69,7 +69,7 @@ public class TreeResource extends BaseResource implements TreeApi { @Inject - protected TreeResource(ServerConfig config, Principal principal, + public TreeResource(ServerConfig config, Principal principal, VersionStore store) { super(config, principal, store); }