[hibernate-commits] Hibernate SVN: r17727 - in core/branches/gradle: hibernate-entitymanager and 1 other directory.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Tue Oct 13 12:13:54 EDT 2009


Author: steve.ebersole at jboss.com
Date: 2009-10-13 12:13:54 -0400 (Tue, 13 Oct 2009)
New Revision: 17727

Modified:
   core/branches/gradle/hibernate-annotations/build.gradle
   core/branches/gradle/hibernate-entitymanager/build.gradle
Log:
have test resources defined in src/test/java copied over to test classes dir

Modified: core/branches/gradle/hibernate-annotations/build.gradle
===================================================================
--- core/branches/gradle/hibernate-annotations/build.gradle	2009-10-13 15:57:41 UTC (rev 17726)
+++ core/branches/gradle/hibernate-annotations/build.gradle	2009-10-13 16:13:54 UTC (rev 17727)
@@ -1,4 +1,7 @@
 dependencies {
+    javaxValidationVersion = '1.0.CR4'
+    hibernateValidatorVersion = '4.0.0.Beta3'
+
     compile (
             this.project(':hibernate-core').sourceSets.main.classes,
             [group: 'dom4j', name: 'dom4j', version: dom4jVersion],
@@ -6,14 +9,28 @@
             [group: 'org.hibernate.java-persistence', name: 'jpa-api', version: jpaVersion],
     )
     provided (
-            [group: 'javax.validation', name: 'validation-api', version: '1.0.CR4']
+            [group: 'javax.validation', name: 'validation-api', version: javaxValidationVersion]
     )
     testCompile (
             [group: 'javassist', name: 'javassist', version: javassistVersion],
             [group: 'cglib', name: 'cglib', version: cglibVersion, transitive: true],
-            [group: 'org.hibernate', name: 'hibernate-validator', version: '4.0.0.Beta3']
+            [group: 'org.hibernate', name: 'hibernate-validator', version: hibernateValidatorVersion],
+            [group: 'javax.validation', name: 'validation-api', version: javaxValidationVersion]
     )
 }
 
+
 sourceTarget = "1.5"
-sourceCompatibility = "1.5"
\ No newline at end of file
+sourceCompatibility = "1.5"
+
+processTestResources.doLast(
+        {
+            copy {
+                from( sourceSets.test.java.srcDirs ) {
+                    include '**/*.properties'
+                    include '**/*.xml'
+                }
+                into sourceSets.test.classesDir
+            }
+        }
+)

Modified: core/branches/gradle/hibernate-entitymanager/build.gradle
===================================================================
--- core/branches/gradle/hibernate-entitymanager/build.gradle	2009-10-13 15:57:41 UTC (rev 17726)
+++ core/branches/gradle/hibernate-entitymanager/build.gradle	2009-10-13 16:13:54 UTC (rev 17727)
@@ -14,4 +14,16 @@
 }
 
 sourceTarget = "1.5"
-sourceCompatibility = "1.5"        
\ No newline at end of file
+sourceCompatibility = "1.5"
+
+processTestResources.doLast(
+        {
+            copy {
+                from( sourceSets.test.java.srcDirs ) {
+                    include '**/*.properties'
+                    include '**/*.xml'
+                }
+                into sourceSets.test.classesDir
+            }
+        }
+)
\ No newline at end of file



More information about the hibernate-commits mailing list