Skip to content

Commit

Permalink
[core] Move the hilbert dependencies to paimon-common module
Browse files Browse the repository at this point in the history
  • Loading branch information
WencongLiu committed Apr 24, 2024
1 parent e27ceb4 commit 3eb06b2
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
16 changes: 16 additions & 0 deletions paimon-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ under the License.
<version>0.16</version>
</dependency>

<dependency>
<groupId>com.github.davidmoten</groupId>
<artifactId>hilbert-curve</artifactId>
<version>0.2.2</version>
</dependency>

<!-- Test -->

<dependency>
Expand Down Expand Up @@ -280,6 +286,8 @@ under the License.
<include>it.unimi.dsi:fastutil</include>
<include>org.roaringbitmap:RoaringBitmap</include>
<include>net.openhft:zero-allocation-hashing</include>
<include>com.github.davidmoten:hilbert-curve</include>
<include>com.github.davidmoten:guava-mini</include>
</includes>
</artifactSet>
<filters>
Expand Down Expand Up @@ -323,6 +331,14 @@ under the License.
<pattern>net.openhft.hashing</pattern>
<shadedPattern>org.apache.paimon.shade.net.openhft.hashing</shadedPattern>
</relocation>
<relocation>
<pattern>org.davidmoten.hilbert</pattern>
<shadedPattern>org.apache.paimon.shade.org.davidmoten.hilbert</shadedPattern>
</relocation>
<relocation>
<pattern>com.github.davidmoten.guavamini</pattern>
<shadedPattern>org.apache.paimon.shade.com.github.davidmoten.guavamini</shadedPattern>
</relocation>
</relocations>
<minimizeJar>true</minimizeJar>
</configuration>
Expand Down
2 changes: 2 additions & 0 deletions paimon-common/src/main/resources/META-INF/NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ You find them under licenses/LICENSE.antlr-runtime and licenses/LICENSE.janino.
- org.codehaus.janino:commons-compiler:3.0.11
- it.unimi.dsi:fastutil:8.5.12
- net.openhft:zero-allocation-hashing:0.16
- com.github.davidmoten:hilbert-curve:0.2.2
- com.github.davidmoten:guava-mini:0.1.3
6 changes: 0 additions & 6 deletions paimon-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,6 @@ under the License.
<version>3.6.1</version>
</dependency>

<dependency>
<groupId>com.github.davidmoten</groupId>
<artifactId>hilbert-curve</artifactId>
<version>0.2.2</version>
</dependency>

<dependency>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
Expand Down

0 comments on commit 3eb06b2

Please sign in to comment.