Skip to content

Commit

Permalink
apacheGH-39214: [Java] Support reproducible build
Browse files Browse the repository at this point in the history
  • Loading branch information
jbonofre committed Dec 19, 2023
1 parent 56991d3 commit a65906a
Show file tree
Hide file tree
Showing 23 changed files with 72 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
4 changes: 3 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>
<minimalMavenBuildVersion>3.5.0</minimalMavenBuildVersion>
<arrow.vector.classifier/>
</properties>

Expand Down Expand Up @@ -145,4 +146,5 @@
</dependencies>

</dependencyManagement>

</project>
1 change: 1 addition & 0 deletions java/c/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<description>Java implementation of C Data Interface</description>
<packaging>jar</packaging>
<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
<arrow.c.jni.dist.dir>./build</arrow.c.jni.dist.dir>
</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
1 change: 1 addition & 0 deletions java/dataset/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<description>Java implementation of Arrow Dataset API/Framework</description>
<packaging>jar</packaging>
<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
<arrow.cpp.build.dir>../../../cpp/release-build/</arrow.cpp.build.dir>
<protobuf.version>2.5.0</protobuf.version>
<parquet.version>1.11.0</parquet.version>
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/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
1 change: 1 addition & 0 deletions java/gandiva/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<name>Arrow Gandiva</name>
<description>Java wrappers around the native Gandiva SQL expression compiler.</description>
<properties>
<project.build.outputTimestamp>2023-12-13T00:00:00Z</project.build.outputTimestamp>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<protobuf.version>3.25.1</protobuf.version>
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
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
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
9 changes: 8 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 Down Expand Up @@ -434,6 +434,13 @@
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0-M2</version>
<configuration>
<rules>
<requireMavenVersion>
<version>[3.3.0,4)</version>
</requireMavenVersion>
</rules>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
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 a65906a

Please sign in to comment.