Skip to content

Commit

Permalink
GH-39214: [Java] Support reproducible build
Browse files Browse the repository at this point in the history
  • Loading branch information
jbonofre committed Dec 13, 2023
1 parent 4aa9f60 commit 502eb17
Show file tree
Hide file tree
Showing 23 changed files with 71 additions and 8 deletions.
4 changes: 4 additions & 0 deletions java/adapter/avro/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
<description>(Contrib/Experimental) A library for converting Avro data to Arrow data.</description>
<url>http://maven.apache.org</url>

<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
</properties>

<dependencies>

<!-- https://mvnrepository.com/artifact/org.apache.arrow/arrow-memory-core -->
Expand Down
4 changes: 4 additions & 0 deletions java/adapter/jdbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
<description>(Contrib/Experimental)A library for converting JDBC data to Arrow data.</description>
<url>http://maven.apache.org</url>

<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
</properties>

<dependencies>

<!-- https://mvnrepository.com/artifact/org.apache.arrow/arrow-memory-core -->
Expand Down
4 changes: 4 additions & 0 deletions java/algorithm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
<name>Arrow Algorithms</name>
<description>(Experimental/Contrib) A collection of algorithms for working with ValueVectors.</description>

<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.arrow</groupId>
Expand Down
3 changes: 2 additions & 1 deletion java/bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>org.apache</groupId>
<artifactId>apache</artifactId>
<version>18</version>
<version>31</version>
</parent>

<groupId>org.apache.arrow</groupId>
Expand All @@ -26,6 +26,7 @@
<description>Arrow Bill of Materials</description>

<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
<arrow.vector.classifier/>
</properties>

Expand Down
4 changes: 4 additions & 0 deletions java/compression/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
<name>Arrow Compression</name>
<description>(Experimental/Contrib) A library for working with the compression/decompression of Arrow data.</description>

<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.arrow</groupId>
Expand Down
3 changes: 2 additions & 1 deletion java/flight/flight-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<packaging>jar</packaging>

<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
<forkCount>1</forkCount>
</properties>

Expand Down Expand Up @@ -287,7 +288,7 @@
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.0.0</version>
<version>3.2.0</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
Expand Down
1 change: 1 addition & 0 deletions java/flight/flight-grpc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<packaging>jar</packaging>

<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
<forkCount>1</forkCount>
</properties>

Expand Down
6 changes: 5 additions & 1 deletion java/flight/flight-integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
<description>Integration tests for Flight RPC.</description>
<packaging>jar</packaging>

<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.arrow</groupId>
Expand Down Expand Up @@ -60,7 +64,7 @@
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.0.0</version>
<version>3.2.0</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
Expand Down
1 change: 1 addition & 0 deletions java/flight/flight-sql-jdbc-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<url>https://arrow.apache.org</url>

<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
<org.apache.arrow.flight.name>${project.parent.groupId}:${project.parent.artifactId}</org.apache.arrow.flight.name>
<org.apache.arrow.flight.version>${project.parent.version}</org.apache.arrow.flight.version>
<org.apache.arrow.flight.jdbc-driver.name>${project.name}</org.apache.arrow.flight.jdbc-driver.name>
Expand Down
4 changes: 4 additions & 0 deletions java/flight/flight-sql-jdbc-driver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
<packaging>jar</packaging>
<url>https://arrow.apache.org</url>

<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
</properties>

<dependencies>
<!-- https://mvnrepository.com/artifact/org.hamcrest/hamcrest-core -->
<dependency>
Expand Down
1 change: 1 addition & 0 deletions java/flight/flight-sql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<packaging>jar</packaging>

<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
<forkCount>1</forkCount>
</properties>

Expand Down
4 changes: 4 additions & 0 deletions java/flight/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@

<packaging>pom</packaging>

<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
</properties>

<modules>
<module>flight-core</module>
<module>flight-grpc</module>
Expand Down
4 changes: 4 additions & 0 deletions java/format/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
<name>Arrow Format</name>
<description>Generated Java files from the IPC Flatbuffer definitions.</description>

<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
</properties>

<dependencies>
<dependency>
<groupId>com.google.flatbuffers</groupId>
Expand Down
3 changes: 2 additions & 1 deletion java/maven/module-info-compiler-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
</prerequisites>

<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
<maven.version>3.3.9</maven.version>
</properties>

Expand Down Expand Up @@ -84,7 +85,7 @@
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<version>3.2.0</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
Expand Down
1 change: 1 addition & 0 deletions java/maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
</modules>

<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
<checkstyle.failOnViolation>true</checkstyle.failOnViolation>
</properties>

Expand Down
4 changes: 4 additions & 0 deletions java/memory/memory-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
<name>Arrow Memory - Core</name>
<description>Core off-heap memory management libraries for Arrow ValueVectors.</description>

<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
</properties>

<dependencies>
<dependency>
<groupId>com.google.code.findbugs</groupId>
Expand Down
4 changes: 4 additions & 0 deletions java/memory/memory-netty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
<name>Arrow Memory - Netty</name>
<description>Netty allocator and utils for allocating memory in Arrow</description>

<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.arrow</groupId>
Expand Down
3 changes: 3 additions & 0 deletions java/memory/memory-unsafe/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
<name>Arrow Memory - Unsafe</name>
<description>Allocator and utils for allocating memory in Arrow based on sun.misc.Unsafe</description>

<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
</properties>

<dependencies>
<dependency>
Expand Down
4 changes: 4 additions & 0 deletions java/memory/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
<name>Arrow Memory</name>
<packaging>pom</packaging>

<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
</properties>

<modules>
<module>memory-core</module>
<module>memory-unsafe</module>
Expand Down
3 changes: 2 additions & 1 deletion java/performance/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
</dependencies>

<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jmh.version>1.21</jmh.version>
<javac.target>1.8</javac.target>
Expand Down Expand Up @@ -191,7 +192,7 @@
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<version>3.2.0</version>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
Expand Down
3 changes: 2 additions & 1 deletion java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>org.apache</groupId>
<artifactId>apache</artifactId>
<version>18</version>
<version>31</version>
</parent>

<groupId>org.apache.arrow</groupId>
Expand All @@ -28,6 +28,7 @@
<url>https://arrow.apache.org/</url>

<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
<target.gen.source.path>${project.build.directory}/generated-sources</target.gen.source.path>
<dep.junit.platform.version>1.9.0</dep.junit.platform.version>
<dep.junit.jupiter.version>5.10.1</dep.junit.jupiter.version>
Expand Down
6 changes: 5 additions & 1 deletion java/tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
<name>Arrow Tools</name>
<description>Java applications for working with Arrow ValueVectors.</description>

<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.arrow</groupId>
Expand Down Expand Up @@ -81,7 +85,7 @@
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.0.0</version>
<version>3.2.0</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
Expand Down
5 changes: 4 additions & 1 deletion java/vector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@
<name>Arrow Vectors</name>
<description>An off-heap reference implementation for Arrow columnar data format.</description>

<dependencies>
<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.arrow</groupId>
<artifactId>arrow-format</artifactId>
Expand Down

0 comments on commit 502eb17

Please sign in to comment.