Skip to content

Commit

Permalink
NIFI-14052 Removed non-deterministic build properties
Browse files Browse the repository at this point in the history
- Removed Maven and Java Home properties from Runtime Manifest build
- Removed Built-By and Build-Os-Version properties from Runtime Manifest
- Disabled JAXB episode file generation
- Enabled output sorting for Swagger specification
  • Loading branch information
exceptionfactory committed Nov 27, 2024
1 parent 2199d64 commit c194635
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,11 @@

Build-Branch:${buildBranch}
Build-Timestamp:${timestamp}
Built-By:${user.name}
MiNiFi-Version:${project.version}
Build-Revision:${buildRevision}
Maven-Home:${maven.home}
Maven-Version:${maven.version}
Created-By:${maven.build.version}
Build-Java-Home:${java.home}
Build-Jdk:${java.version}
Build-Jdk-Vendor:${java.vendor}
Build-Arch:${os.arch}
Build-Os:${os.name}
Build-Os-Version:${os.version}
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
<outputPath>${restApiDirectory}</outputPath>
<outputFileName>swagger</outputFileName>
<outputFormat>JSONANDYAML</outputFormat>
<sortOutput>true</sortOutput>
<prettyPrint>true</prettyPrint>
<defaultResponseCode>200</defaultResponseCode>
<configurationFilePath>${project.build.outputDirectory}/openapi.yaml</configurationFilePath>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,9 @@ Project-Version:${project.version}
Build-Branch:${buildBranch}
Build-Revision:${buildRevision}
Build-Timestamp:${maven.build.timestamp}
Built-By:${user.name}
Maven-Home:${maven.home}
Maven-Version:${maven.version}
Created-By:${maven.build.version}
Build-Java-Home:${java.home}
Build-Jdk:${java.version}
Build-Jdk-Vendor:${java.vendor}
Build-Arch:${os.arch}
Build-Os:${os.name}
Build-Os-Version:${os.version}
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
<outputPath>${api.docs.dir}</outputPath>
<outputFileName>swagger</outputFileName>
<outputFormat>JSONANDYAML</outputFormat>
<sortOutput>true</sortOutput>
<prettyPrint>true</prettyPrint>
<defaultResponseCode>200</defaultResponseCode>
<configurationFilePath>${project.build.outputDirectory}/openapi.yaml</configurationFilePath>
Expand Down
17 changes: 17 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,8 @@
<artifactId>hisrc-higherjaxb40-maven-plugin</artifactId>
<configuration>
<noFileHeader>true</noFileHeader>
<!-- Disable episode file generation with non-reproducible timestamps -->
<episode>false</episode>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -1009,6 +1011,21 @@
</properties>
</profile>

<!-- Set reproducible build properties for Apache Releases -->
<profile>
<id>apache-release</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<maven.buildNumber.skip>true</maven.buildNumber.skip>
<buildTag>rel/nifi-${project.version}</buildTag>
<buildRevision>rel/nifi-${project.version}</buildRevision>
<buildBranch>main</buildBranch>
<maven.build.timestamp>${project.build.outputTimestamp}</maven.build.timestamp>
</properties>
</profile>

<profile>
<!-- Performs execution of Integration Tests using the Maven
FailSafe Plugin. The view of integration tests in this context are those
Expand Down

0 comments on commit c194635

Please sign in to comment.