From ff9eb6d1b2d2c6d0c5414935c966b4f312d7b1ef Mon Sep 17 00:00:00 2001 From: Strong Liu Date: Mon, 21 Nov 2011 10:16:30 +0800 Subject: [PATCH] test need to be compiled in UTF-8 --- build.gradle | 1 + hibernate-core/hibernate-core.gradle | 1 + hibernate-entitymanager/hibernate-entitymanager.gradle | 1 + hibernate-envers/hibernate-envers.gradle | 3 ++- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 9eb1831830..0cce2fdfca 100644 --- a/build.gradle +++ b/build.gradle @@ -193,6 +193,7 @@ subprojects { subProject -> compileJava.dependsOn generateMainLoggingClasses compileJava.options.define(compilerArgs: ["-proc:none", "-encoding", "UTF-8"]) + compileTestJava.options.define(compilerArgs: ["-proc:none", "-encoding", "UTF-8"]) manifest.mainAttributes( provider: 'gradle', diff --git a/hibernate-core/hibernate-core.gradle b/hibernate-core/hibernate-core.gradle index 589e819170..05c78f229c 100644 --- a/hibernate-core/hibernate-core.gradle +++ b/hibernate-core/hibernate-core.gradle @@ -30,6 +30,7 @@ dependencies { testRuntime( 'jaxen:jaxen:1.1' ) testRuntime( libraries.javassist ) } +compileMatrixJava.options.define(compilerArgs: ["-proc:none", "-encoding", "UTF-8"]) manifest.mainAttributes( 'Main-Class': 'org.hibernate.Version' diff --git a/hibernate-entitymanager/hibernate-entitymanager.gradle b/hibernate-entitymanager/hibernate-entitymanager.gradle index 833a8c04e8..8fecebc06f 100644 --- a/hibernate-entitymanager/hibernate-entitymanager.gradle +++ b/hibernate-entitymanager/hibernate-entitymanager.gradle @@ -26,6 +26,7 @@ sourceSets.test { generatedJpaMetamodelSrcDir = file( "${buildDir}/generated-src/jpamodelgen/${name}" ) java.srcDir generatedJpaMetamodelSrcDir } +compileMatrixJava.options.define(compilerArgs: ["-proc:none", "-encoding", "UTF-8"]) sourceSets { matrix { java { diff --git a/hibernate-envers/hibernate-envers.gradle b/hibernate-envers/hibernate-envers.gradle index 3edce6edd4..d0b1f5d992 100644 --- a/hibernate-envers/hibernate-envers.gradle +++ b/hibernate-envers/hibernate-envers.gradle @@ -28,7 +28,8 @@ sourceSets { } } } +compileMatrixJava.options.define(compilerArgs: ["-proc:none", "-encoding", "UTF-8"]) ideaModule { testSourceDirs += file( 'src/matrix/java') testSourceDirs += file( 'src/matrix/resources') -} \ No newline at end of file +}