This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 63d572b0daf HDDS-17160. Make hdds-rocks-native compile cacheable
(#11639)
63d572b0daf is described below
commit 63d572b0daf2938a83c2f428ccd6730abe8efe4e
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Tue Oct 20 23:21:59 2026 +0200
HDDS-17160. Make hdds-rocks-native compile cacheable (#11639)
---
hadoop-hdds/rocks-native/pom.xml | 28 ++++++++++++++++++++++++++-
hadoop-hdds/rocksdb-checkpoint-differ/pom.xml | 2 +-
pom.xml | 13 +++++++++++--
3 files changed, 39 insertions(+), 4 deletions(-)
diff --git a/hadoop-hdds/rocks-native/pom.xml b/hadoop-hdds/rocks-native/pom.xml
index cbbf156bb44..bb4494da0e3 100644
--- a/hadoop-hdds/rocks-native/pom.xml
+++ b/hadoop-hdds/rocks-native/pom.xml
@@ -120,6 +120,32 @@
<sstDump.include>true</sstDump.include>
</properties>
<build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <!-- Declare path passed to compiler via -h as output, to make
compile goal cacheable -->
+ <groupId>com.gradle</groupId>
+ <artifactId>develocity-maven-extension</artifactId>
+ <configuration>
+ <develocity>
+ <plugins combine.children="append">
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <outputs>
+ <directories>
+ <directory>
+ <name>javah</name>
+
<path>${project.build.directory}/native/javah</path>
+ </directory>
+ </directories>
+ </outputs>
+ </plugin>
+ </plugins>
+ </develocity>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
<plugins>
<!-- rocksdbjni may carry a packaging/build suffix like 10.10.1.1,
but upstream RocksDB source tags and tarballs are published as
@@ -359,7 +385,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
- <argLine>${maven-surefire-plugin.argLine} @{argLine}
-Djava.library.path=${project.build.directory}/native/rocksdb</argLine>
+ <argLine>${maven-surefire-plugin.argLine} @{argLine}
-Djava.library.path=${project.build.outputDirectory}</argLine>
</configuration>
</plugin>
</plugins>
diff --git a/hadoop-hdds/rocksdb-checkpoint-differ/pom.xml
b/hadoop-hdds/rocksdb-checkpoint-differ/pom.xml
index f9f093ff927..f823211303c 100644
--- a/hadoop-hdds/rocksdb-checkpoint-differ/pom.xml
+++ b/hadoop-hdds/rocksdb-checkpoint-differ/pom.xml
@@ -135,7 +135,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
- <argLine>${maven-surefire-plugin.argLine} @{argLine}
-Djava.library.path=${project.parent.basedir}/rocks-native/target/native/rocksdb</argLine>
+ <argLine>${maven-surefire-plugin.argLine} @{argLine}
-Djava.library.path=${project.parent.basedir}/rocks-native/target/classes</argLine>
</configuration>
</plugin>
</plugins>
diff --git a/pom.xml b/pom.xml
index 66b79ab8dd4..9c7c940f517 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1780,7 +1780,10 @@
<paths>
<path>${maven.multiModuleProjectDirectory}/target/native-lib</path>
</paths>
- <normalization>RELATIVE_PATH</normalization>
+ <normalization>
+ <strategy>RELATIVE_PATH</strategy>
+ <ignoreEmptyDirectories>true</ignoreEmptyDirectories>
+ </normalization>
</fileSet>
<fileSet>
<name>rocksdb-native-lib</name>
@@ -1788,7 +1791,13 @@
<path>${project.build.directory}/native/rocksdb</path>
<path>${maven.multiModuleProjectDirectory}/hadoop-hdds/rocks-native/target/native/rocksdb</path>
</paths>
- <normalization>RELATIVE_PATH</normalization>
+ <includes>
+ <include>lib*.*</include>
+ </includes>
+ <normalization>
+ <strategy>RELATIVE_PATH</strategy>
+ <ignoreEmptyDirectories>true</ignoreEmptyDirectories>
+ </normalization>
</fileSet>
</fileSets>
</inputs>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]