[MNG-8258] activate Reproducible Builds by default (#1726)

This commit is contained in:
Hervé Boutemy 2024-10-01 16:51:06 +02:00 committed by GitHub
parent ce2675adfa
commit 82cf96094f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 7 additions and 2 deletions

View File

@ -26,6 +26,7 @@ under the License.
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<project.build.outputTimestamp>2001-01-01T00:00:00Z</project.build.outputTimestamp>
</properties>
<build>

View File

@ -26,6 +26,7 @@ under the License.
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<project.build.outputTimestamp>2001-01-01T00:00:00Z</project.build.outputTimestamp>
</properties>
<build>

View File

@ -1228,7 +1228,7 @@ class PomConstructionTest {
@Test
void testPropertiesNoDuplication() throws Exception {
PomTestWrapper pom = buildPom("properties-no-duplication/sub");
assertEquals(3, ((Properties) pom.getValue("properties")).size());
assertEquals(4, ((Properties) pom.getValue("properties")).size());
assertEquals("child", pom.getValue("properties/pomProfile"));
}
@ -1351,10 +1351,11 @@ class PomConstructionTest {
assertEquals(1, ((List<?>) pom.getValue("modules")).size());
assertEquals("sub", pom.getValue("modules[1]"));
assertEquals(3, ((Map<?, ?>) pom.getValue("properties")).size());
assertEquals(4, ((Map<?, ?>) pom.getValue("properties")).size());
assertEquals("project-property", pom.getValue("properties[1]/itProperty"));
assertEquals("UTF-8", pom.getValue("properties[1]/project.build.sourceEncoding"));
assertEquals("UTF-8", pom.getValue("properties[1]/project.reporting.outputEncoding"));
assertEquals("2001-01-01T00:00:00Z", pom.getValue("properties[1]/project.build.outputTimestamp"));
assertEquals(1, ((List<?>) pom.getValue("dependencyManagement/dependencies")).size());
assertEquals("org.apache.maven.its", pom.getValue("dependencyManagement/dependencies[1]/groupId"));

View File

@ -26,6 +26,7 @@ under the License.
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<project.build.outputTimestamp>2001-01-01T00:00:00Z</project.build.outputTimestamp>
</properties>
<build>

View File

@ -26,6 +26,7 @@ under the License.
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<project.build.outputTimestamp>2001-01-01T00:00:00Z</project.build.outputTimestamp>
</properties>
<build>