Skip to content

Commit

Permalink
Support reproducible maven builds
Browse files Browse the repository at this point in the history
  • Loading branch information
wendigo committed Apr 10, 2024
1 parent ff02dc8 commit 9c80681
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Airbase 154
* Fix javadoc building when `air.compiler.enable-preview` is set
* Support maven reproducible builds

Airbase 153
* Dependency updates:
Expand Down
9 changes: 5 additions & 4 deletions airbase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
<project.build.targetJdk>8</project.build.targetJdk>
<project.report.outputEncoding>UTF-8</project.report.outputEncoding>
<project.report.inputEncoding>UTF-8</project.report.inputEncoding>
<project.build.outputTimestamp>${git.commit.time}</project.build.outputTimestamp>

<!-- airlift build specific options are prefixed air.build. -->

Expand Down Expand Up @@ -856,6 +857,7 @@
<encoding>${project.build.sourceEncoding}</encoding>
<maxmemory>${air.build.jvmsize}</maxmemory>
<doclint>${air.javadoc.lint}</doclint>
<notimestamp>true</notimestamp>
<additionalOptions>${surefireEnablePreview}</additionalOptions>
</configuration>
<executions>
Expand Down Expand Up @@ -885,9 +887,8 @@
<addClasspath>false</addClasspath>
</manifest>
<manifestEntries>
<!-- This is actually the time when the build was done -->
<Build-Time>${git.build.time}</Build-Time>
<Git-Commit-Id>${git.commit.id}</Git-Commit-Id>
<Git-Commit-Time>${git.commit.time}</Git-Commit-Time>
<Implementation-Version>${git.commit.id.describe}</Implementation-Version>
</manifestEntries>
</archive>
Expand All @@ -910,11 +911,11 @@
<configuration>
<!-- Include only properties used above to speed up build (https://github.com/git-commit-id/git-commit-id-maven-plugin/issues/462) -->
<includeOnlyProperties>
<includeOnlyProperty>\Qgit.build.time</includeOnlyProperty>
<includeOnlyProperty>\Qgit.commit.id</includeOnlyProperty>
<includeOnlyProperty>\Qgit.commit.time</includeOnlyProperty>
<includeOnlyProperty>\Qgit.commit.id.describe</includeOnlyProperty>
</includeOnlyProperties>
<dateFormat>yyyy-MM-dd'T'HH:mm:ssZZ</dateFormat>
<dateFormat>yyyy-MM-dd'T'HH:mm:ssXXX</dateFormat>
<gitDescribe>
<tags>true</tags>
</gitDescribe>
Expand Down

0 comments on commit 9c80681

Please sign in to comment.