Skip to content

Commit

Permalink
refactor: create new submodule native-library-common to merge NativeU…
Browse files Browse the repository at this point in the history
…tils
  • Loading branch information
equanz committed Dec 10, 2024
1 parent 7131e51 commit a7d31a8
Show file tree
Hide file tree
Showing 18 changed files with 134 additions and 238 deletions.
5 changes: 5 additions & 0 deletions circe-checksum/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
</properties>

<dependencies>
<dependency>
<groupId>org.apache.bookkeeper</groupId>
<artifactId>native-library-common</artifactId>
<version>${project.parent.version}</version>
</dependency>

<dependency>
<groupId>com.google.guava</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
******************************************************************************/
package com.scurrilous.circe.crc;

import static com.scurrilous.circe.utils.NativeUtils.loadLibraryFromJar;
import static com.scurrilous.circe.utils.NativeUtils.libType;
import static org.apache.bookkeeper.common.util.nativelib.NativeUtils.libType;
import static org.apache.bookkeeper.common.util.nativelib.NativeUtils.loadLibraryFromJar;

import java.nio.ByteBuffer;
import com.scurrilous.circe.IncrementalIntHash;
Expand Down
5 changes: 5 additions & 0 deletions cpu-affinity/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
</properties>

<dependencies>
<dependency>
<groupId>org.apache.bookkeeper</groupId>
<artifactId>native-library-common</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import java.util.TreeSet;
import lombok.experimental.UtilityClass;
import lombok.extern.slf4j.Slf4j;
import org.apache.bookkeeper.common.util.nativelib.NativeUtils;

/**
* Implementation of CPU Affinity functionality.
Expand Down

This file was deleted.

5 changes: 5 additions & 0 deletions native-io/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
</properties>

<dependencies>
<dependency>
<groupId>org.apache.bookkeeper</groupId>
<artifactId>native-library-common</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
*/
package org.apache.bookkeeper.common.util.nativeio;

import org.apache.bookkeeper.common.util.nativelib.NativeUtils;
import org.apache.commons.lang3.SystemUtils;

class NativeIOJni {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
*/

/**
* Utiltiies to access I/O using JNI.
* Utilities to access I/O using JNI.
*/
package org.apache.bookkeeper.common.util.nativeio;
53 changes: 53 additions & 0 deletions native-library-common/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!--
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.
-->
<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.apache.bookkeeper</groupId>
<artifactId>bookkeeper</artifactId>
<version>4.18.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

<artifactId>native-library-common</artifactId>
<name>Apache BookKeeper :: Common for Native Libraries</name>
<description>Common for Native Libraries</description>

<dependencies>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
Loading

0 comments on commit a7d31a8

Please sign in to comment.