Browse Source

Set explicit en_US locale for build timestamps in Build Helper Maven

There were warnings that builds were dependent on the system local
(de_DE in my case). In patterns like "EEEE MMM d, yyyy", parts like day
of week or month names would change otherwise.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
tags/java16-add-opens
Alexander Kriegisch 3 years ago
parent
commit
0012982c7e
2 changed files with 6 additions and 3 deletions
  1. 1
    0
      bridge/pom.xml
  2. 5
    3
      build/pom.xml

+ 1
- 0
bridge/pom.xml View File

@@ -37,6 +37,7 @@
<name>version.time_text</name>
<pattern>EEEE MMM d, yyyy 'at' HH:mm:ss z</pattern>
<timeZone>America/Los_Angeles</timeZone>
<locale>en_US</locale>
<!-- build.time: Monday Feb 4, 2019 at 23:50:25 GMT -->
</configuration>
</execution>

+ 5
- 3
build/pom.xml View File

@@ -44,9 +44,9 @@
<configuration>
<name>build.date</name>
<pattern>E MMM d, YYYY</pattern>
<timeZone>Europe/Zurich</timeZone>
<!-- build.date: Monday Feb 4, 2019 -->
<timeZone>America/Los_Angeles</timeZone>
<locale>en_US</locale>
<!-- build.date: Monday Feb 4, 2019 -->
</configuration>
</execution>
<execution>
@@ -56,11 +56,12 @@
</goals>
<configuration>
<name>build.time</name>
<!--
<!--
<pattern>E MMM d, YYYY 'at' HH:MM:SS z</pattern>
-->
<pattern>EEEE MMM d, yyyy 'at' HH:mm:ss z</pattern>
<timeZone>America/Los_Angeles</timeZone>
<locale>en_US</locale>
<!-- build.time: Monday Feb 4, 2019 at 23:50:25 GMT -->
</configuration>
</execution>
@@ -73,6 +74,7 @@
<name>build.year</name>
<pattern>YYYY</pattern>
<timeZone>America/Los_Angeles</timeZone>
<locale>en_US</locale>
<!-- year: 2019 -->
</configuration>
</execution>

Loading…
Cancel
Save