Skip to content

Commit

Permalink
Moved TableCommitMetaStoreWorker to nessie-services
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Paiva Lima da Silva committed Feb 9, 2021
1 parent 52cb87d commit 19289c9
Show file tree
Hide file tree
Showing 7 changed files with 105 additions and 21 deletions.
1 change: 1 addition & 0 deletions servers/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@
<module>services</module>
<module>quarkus-server</module>
<module>lambda</module>
<module>server</module>
</modules>
</project>
24 changes: 5 additions & 19 deletions servers/quarkus-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
<artifactId>nessie-services</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.projectnessie</groupId>
<artifactId>nessie-server</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.projectnessie</groupId>
<artifactId>nessie-versioned-jgit</artifactId>
Expand Down Expand Up @@ -199,25 +204,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.6.1</version>
<configuration>
<protoSourceRoot>${basedir}/src/main/proto</protoSourceRoot>
<protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/generated-sources/protobuf</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
96 changes: 96 additions & 0 deletions servers/server/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2020 Dremio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.projectnessie</groupId>
<artifactId>nessie-server-parent</artifactId>
<version>0.3.1-SNAPSHOT</version>
</parent>

<artifactId>nessie-server</artifactId>

<name>Nessie - Server</name>

<dependencies>
<dependency>
<groupId>org.projectnessie</groupId>
<artifactId>nessie-model</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.projectnessie</groupId>
<artifactId>nessie-versioned-spi</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.spec.javax.ws.rs</groupId>
<artifactId>jboss-jaxrs-api_2.1_spec</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
</dependency>
<dependency>
<groupId>jakarta.enterprise</groupId>
<artifactId>jakarta.enterprise.cdi-api</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.6.1</version>
<configuration>
<protoSourceRoot>${basedir}/src/main/proto</protoSourceRoot>
<protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/generated-sources/protobuf</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Contents, CommitMeta> store) {
super(config, principal, store);
}
Expand Down

0 comments on commit 19289c9

Please sign in to comment.