HHH-14144 Explicitly set localization assumptions for the build and testsuite

This commit is contained in:
Falko Modler 2020-05-27 18:22:54 +02:00 committed by Sanne Grinovero
parent 5d38bf5eea
commit 74126b7537
2 changed files with 11 additions and 2 deletions

View File

@ -1 +1,2 @@
org.gradle.jvmargs=-Xmx1g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Duser.language=en
# Keep system properties in sync with test system properties (java-module.gradle)!
org.gradle.jvmargs=-Xmx1g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Duser.language=en -Duser.country=US -Duser.timezone=UTC -Dfile.encoding=UTF-8

View File

@ -201,7 +201,15 @@ processTestResources {
}
}
// Enable the experimental features of ByteBuddy with JDK 12+
// Keep system properties in sync with gradle.properties!
test {
systemProperty 'user.language', 'en'
systemProperty 'user.country', 'US'
systemProperty 'user.timezone', 'UTC'
systemProperty 'file.encoding', 'UTF-8'
}
// Enable the experimental features of ByteBuddy with JDK 15+
test {
//Only safe to attempt to parse the version as an integer since JDK11
if ( JavaVersion.current().isJava11Compatible() ) {