Skip to content

Commit

Permalink
Modularize flight-core
Browse files Browse the repository at this point in the history
  • Loading branch information
jduo committed Dec 13, 2023
1 parent b807eae commit 6fc4427
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 0 deletions.
32 changes: 32 additions & 0 deletions java/flight/flight-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
</dependency>
<dependency>
<groupId>org.immutables</groupId>
<artifactId>value</artifactId>
</dependency>

<dependency>
<groupId>com.google.api.grpc</groupId>
Expand Down Expand Up @@ -310,4 +314,32 @@
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>error-prone-jdk11+</id>
<activation>
<jdk>[11,]</jdk>
<property>
<name>!m2e.version</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration combine.self="override">
<argLine>--add-opens=org.apache.arrow.flight.core/org.apache.arrow.flight.perf.impl=protobuf.java --add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED</argLine>
<enableAssertions>false</enableAssertions>
<systemPropertyVariables>
<arrow.test.dataRoot>${project.basedir}/../../../testing/data</arrow.test.dataRoot>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>
43 changes: 43 additions & 0 deletions java/flight/flight-core/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/

module org.apache.arrow.flight.core {
exports org.apache.arrow.flight;
exports org.apache.arrow.flight.auth;
exports org.apache.arrow.flight.auth2;
exports org.apache.arrow.flight.client;
exports org.apache.arrow.flight.impl;
exports org.apache.arrow.flight.sql.impl;

requires com.fasterxml.jackson.databind;
requires com.google.common;
requires com.google.errorprone.annotations;
requires failureaccess;
requires io.grpc;
requires io.grpc.internal;
requires io.grpc.netty;
requires io.grpc.protobuf;
requires io.grpc.stub;
requires io.netty.common;
requires io.netty.handler;
requires io.netty.transport;
requires org.apache.arrow.format;
requires org.apache.arrow.memory.core;
requires org.apache.arrow.vector;
requires protobuf.java;
requires org.slf4j;
}
Empty file.

0 comments on commit 6fc4427

Please sign in to comment.