-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARROW-16328: [Java] Proposal to upgrade Arrow Java project to JPMS Java Platform Module System #13072
Closed
Closed
ARROW-16328: [Java] Proposal to upgrade Arrow Java project to JPMS Java Platform Module System #13072
Changes from 6 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
9493972
Initial draft to experiment with java module system
davisusanibar c652c12
Adding module-info.java for Arrow Java Memory / Vector
davisusanibar 504c8c6
Adding initial module-info.java for Arrow Java Flight Core
davisusanibar a604275
Adding changes to the modules and to the ci new netty buffer patch
davisusanibar d3f7499
Solving build errors
davisusanibar 1424d04
To solve error: Non-resolvable parent POM
davisusanibar fa791ec
Merge JPMS draft + main branch
davisusanibar 057941d
JPMS update netty patch
davisusanibar ad4c485
Merge branch 'master' into java-ARROW-16328
davisusanibar ba1a9f6
Update librardy dependencies to the last version that support JPMS
davisusanibar c411828
Support JPMS with JRE<9
davisusanibar 4dcfb04
Adding vector deps module
davisusanibar 978a960
Merge with main branch
davisusanibar e445756
Delete tmp files
davisusanibar 44c9cb2
Solving RAT errors
davisusanibar ff243ed
Add jar deps
davisusanibar 67869ea
Remove not needed plugins
davisusanibar 6ccb60d
Increase fork count
davisusanibar 337e1ab
Reset changes
davisusanibar aa59489
Decouple io.netty.buffer to their own memory module
davisusanibar b929b7d
Change io.netty.buffer package name
davisusanibar 1e9f1d6
Prepare different packages for JPMS
davisusanibar 23758d5
Base project to start with JPMS
davisusanibar fbee610
Add JPMS for format & memory
davisusanibar d20a5a5
Add JPMS for vector
davisusanibar 014808a
Clean code
davisusanibar a321083
Clean code
davisusanibar 8087dc3
Merge branch 'master' into clean-code-before-pr
davisusanibar ab206c4
More clean code
davisusanibar 1c560f5
Solving CData Interface testing errors
davisusanibar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
java/flight/flight-core/src/main/java/module-info.java.tmp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module flight.core { | ||
|
||
requires arrow.memory.core; | ||
requires arrow.vector; | ||
requires com.google.common; | ||
requires com.google.protobuf; | ||
requires java.annotation; | ||
requires grpc.api; | ||
requires grpc.stub; | ||
requires grpc.core; | ||
requires grpc.context; | ||
requires grpc.netty; | ||
requires io.netty.transport; | ||
requires com.fasterxml.jackson.databind; | ||
requires io.netty.buffer; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module org.apache.arrow.flatbuf { | ||
exports org.apache.arrow.flatbuf; | ||
requires flatbuffers.java; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module arrow.memory.core { | ||
exports org.apache.arrow.memory; | ||
exports org.apache.arrow.memory.rounding; | ||
exports org.apache.arrow.util; | ||
exports org.apache.arrow.memory.util; | ||
// opens java.nio; | ||
exports org.apache.arrow.memory.util.hash; | ||
requires jsr305; | ||
requires org.immutables.value; | ||
requires transitive org.slf4j; | ||
requires transitive jdk.unsupported; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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"> | ||
<parent> | ||
<artifactId>arrow-memory</artifactId> | ||
<groupId>org.apache.arrow</groupId> | ||
<version>8.0.0-SNAPSHOT</version> | ||
<relativePath>../pom.xml</relativePath> | ||
</parent> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<artifactId>arrow-memory-netty-buffer-patch</artifactId> | ||
<name>Arrow Memory - Netty Buffer</name> | ||
<description>Netty Buffer needed to patch that is consumed by Arrow Memory Netty</description> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.apache.arrow</groupId> | ||
<artifactId>arrow-memory-core</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.netty</groupId> | ||
<artifactId>netty-buffer</artifactId> | ||
</dependency> | ||
</dependencies> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
java/memory/memory-netty-buffer-patch/src/test/resources/logback.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!-- 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. --> | ||
|
||
<configuration> | ||
<statusListener class="ch.qos.logback.core.status.NopStatusListener"/> | ||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<!-- encoders are assigned the type | ||
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default --> | ||
<encoder> | ||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<logger name="org.apache.arrow" additivity="false"> | ||
<level value="info" /> | ||
<appender-ref ref="STDOUT" /> | ||
</logger> | ||
|
||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module arrow.memory.netty { | ||
exports org.apache.arrow.memory.netty; | ||
requires arrow.memory.core; | ||
requires io.netty.common; | ||
requires io.netty.buffer; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use
${settings.localRepository}
instead of hardcoding the userThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, updated